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

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
小怪兽
帖子: 10
注册时间: 2016-09-18 16:04
系统: win

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

#1

帖子 小怪兽 » 2016-09-18 16:09

使用的是apt-get install 安装的 然后报错了 下面我提交了错误信息,求解答
附件
错误提示
错误提示
QQ图片20160918161000.png (9.43 KiB) 查看 7801 次
头像
peteryeh64
论坛版主
帖子: 9377
注册时间: 2008-12-20 15:43
系统: 家kubuntu20.04
来自: 心靈深處

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

#2

帖子 peteryeh64 » 2016-09-18 16:12

試試看終端命令下輸入

代码: 全选

sudo apt-get -f install
[论坛版主行为规定]+[PITIVI簡易教程]+[CAD裝draftsight2018sp3]+[网易云音乐]+[ubuntu裝迅雷]
[releases.ubuntu.com]+[cdimage.ubuntu.com]+[old-releases.ubuntu.com]
[學ubuntu必須拜讀懶蝸牛"笨兔兔的故事"=viewtopic.php?f=112&t=162040][Linux明日的希望在中國]
小怪兽
帖子: 10
注册时间: 2016-09-18 16:04
系统: win

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

#3

帖子 小怪兽 » 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)
小怪兽
帖子: 10
注册时间: 2016-09-18 16:04
系统: win

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

#4

帖子 小怪兽 » 2016-09-18 16:17

peteryeh64 写了:試試看終端命令下輸入

代码: 全选

sudo apt-get -f install
附件
你看下 谢谢了
你看下 谢谢了
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

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

#5

帖子 vickycq » 2016-09-18 16:20

小怪兽 写了: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/*
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
小怪兽
帖子: 10
注册时间: 2016-09-18 16:04
系统: win

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

#6

帖子 小怪兽 » 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
小怪兽
帖子: 10
注册时间: 2016-09-18 16:04
系统: win

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

#7

帖子 小怪兽 » 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
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

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

#8

帖子 vickycq » 2016-09-18 17:49

小怪兽 写了: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。
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
小怪兽
帖子: 10
注册时间: 2016-09-18 16:04
系统: win

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

#9

帖子 小怪兽 » 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
回复