分页: 1 / 1

ubuntu12.04 安装mysql报错,求帮助

发表于 : 2016-09-18 16:09
小怪兽
使用的是apt-get install 安装的 然后报错了 下面我提交了错误信息,求解答

Re: ubuntu12.04 安装mysql报错,求帮助

发表于 : 2016-09-18 16:12
peteryeh64
試試看終端命令下輸入

代码: 全选

sudo apt-get -f install

Re: ubuntu12.04 安装mysql报错,求帮助

发表于 : 2016-09-18 16:15
小怪兽
peteryeh64 写了:試試看終端命令下輸入

代码: 全选

sudo apt-get -f install
inkbirdAdmin@inkbird:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
libplymouth4 plymouth plymouth-theme-ubuntu-text
The following NEW packages will be installed:
libplymouth4 plymouth plymouth-theme-ubuntu-text
0 upgraded, 3 newly installed, 0 to remove and 89 not upgraded.
2 not fully installed or removed.
Need to get 0 B/197 kB of archives.
After this operation, 947 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up util-linux (2.25.2-4ubuntu3) ...
insserv: Service mountdevsubfs has to be enabled to start service hwclock
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package util-linux (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
util-linux
E: Sub-process /usr/bin/dpkg returned an error code (1)

Re: ubuntu12.04 安装mysql报错,求帮助

发表于 : 2016-09-18 16:17
小怪兽
peteryeh64 写了:試試看終端命令下輸入

代码: 全选

sudo apt-get -f install

Re: ubuntu12.04 安装mysql报错,求帮助

发表于 : 2016-09-18 16:20
vickycq
小怪兽 写了:ubuntu12.04 安装mysql报错
Ubuntu 12.04 (precise) 官方源中并不存在 mysql-server-5.6
从输出来看,是否存在较严重的混源现象
执行以下指令将结果全部复制贴上来,不要节选或截图

代码: 全选

cat /etc/issue /etc/os-release
cat /etc/apt/sources.list
cat /etc/apt/sources.list.d/*

Re: ubuntu12.04 安装mysql报错,求帮助

发表于 : 2016-09-18 16:25
小怪兽
vickycq 写了:
小怪兽 写了:ubuntu12.04 安装mysql报错
Ubuntu 12.04 (precise) 官方源中并不存在 mysql-server-5.6
从输出来看,是否存在较严重的混源现象
执行以下指令将结果全部复制贴上来,不要节选或截图

代码: 全选

cat /etc/issue /etc/os-release
cat /etc/apt/sources.list
cat /etc/apt/sources.list.d/*
这是第一个命令
inkbirdAdmin@inkbird:~$ cat /etc/issue /etc/os-release
Ubuntu 15.04 \n \l

NAME="Ubuntu"
VERSION="15.04 (Vivid Vervet)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 15.04"
VERSION_ID="15.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
这是第二个命令
inkbirdAdmin@inkbird:~$ cat /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ precise main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ precise-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ precise-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ precise main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ precise-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ precise-backports main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-backports main restricted universe multiverse
这是第三个命令
inkbirdAdmin@inkbird:~$ cat /etc/apt/sources.list.d/*
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out entries below, but any other modifications may be lost.
# Use command 'dpkg-reconfigure mysql-apt-config' as root for modifications.
deb http://repo.mysql.com/apt/ubuntu/ vivid mysql-apt-config
# deb http://repo.mysql.com/apt/ubuntu/ vivid mysql-5.7

# deb-src http://repo.mysql.com/apt/ubuntu/ vivid mysql-5.7

Re: ubuntu12.04 安装mysql报错,求帮助

发表于 : 2016-09-18 16:26
小怪兽
vickycq 写了:
小怪兽 写了:ubuntu12.04 安装mysql报错
Ubuntu 12.04 (precise) 官方源中并不存在 mysql-server-5.6
从输出来看,是否存在较严重的混源现象
执行以下指令将结果全部复制贴上来,不要节选或截图

代码: 全选

cat /etc/issue /etc/os-release
cat /etc/apt/sources.list
cat /etc/apt/sources.list.d/*
这是第一个命令

代码: 全选

inkbirdAdmin@inkbird:~$ cat /etc/issue /etc/os-release
Ubuntu 15.04 \n \l

NAME="Ubuntu"
VERSION="15.04 (Vivid Vervet)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 15.04"
VERSION_ID="15.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
这是第二个命令

代码: 全选

inkbirdAdmin@inkbird:~$ cat /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ precise main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ precise-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ precise-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ precise main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ precise-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ precise-backports main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-backports main restricted universe multiverse
这是第三个命令

代码: 全选

inkbirdAdmin@inkbird:~$ cat /etc/apt/sources.list.d/*
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out entries below, but any other modifications may be lost.
# Use command 'dpkg-reconfigure mysql-apt-config' as root for modifications.
deb http://repo.mysql.com/apt/ubuntu/ vivid mysql-apt-config
# deb http://repo.mysql.com/apt/ubuntu/ vivid mysql-5.7

# deb-src http://repo.mysql.com/apt/ubuntu/ vivid mysql-5.7

Re: ubuntu12.04 安装mysql报错,求帮助

发表于 : 2016-09-18 17:49
vickycq
小怪兽 写了:ubuntu12.04 安装mysql报错
Ubuntu 15.04 \n \l
deb http://mirrors.aliyun.com/ubuntu/ precise main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiverse
猜测此处的 15.04(vivid) 由 12.04(precise) 升级而来。但 15.04(vivid) 生命周期已终结,不再提供支持与线上更新。软件源已没有 vivid 目录。
若不打算重装系统,可尝试升级到 16.04,但极可能出现的情况为漏洞过多,堵不胜堵,耗费大量精力除错而无果。故建议全新安装 Ubuntu 14.04 或 16.04。

Re: ubuntu12.04 安装mysql报错,求帮助

发表于 : 2016-09-18 19:55
小怪兽
vickycq 写了:
小怪兽 写了:ubuntu12.04 安装mysql报错
Ubuntu 15.04 \n \l
deb http://mirrors.aliyun.com/ubuntu/ precise main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiverse
猜测此处的 15.04(vivid) 由 12.04(precise) 升级而来。但 15.04(vivid) 生命周期已终结,不再提供支持与线上更新。软件源已没有 vivid 目录。
若不打算重装系统,可尝试升级到 16.04,但极可能出现的情况为漏洞过多,堵不胜堵,耗费大量精力除错而无果。故建议全新安装 Ubuntu 14.04 或 16.04。
嗯嗯 谢谢 我换了新的 搞定了 :em11