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

数据库服务和管理,MySQL/PostgreSQL/Oracle/Sybase 等
回复
小怪兽
帖子: 10
注册时间: 2016-09-18 16:04
系统: win
送出感谢: 3 次
接收感谢: 0

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

#1

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

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

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

#2

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

試試看終端命令下輸入

代码: 全选

sudo apt-get -f install
这些用户感谢了作者 peteryeh64 于这个帖子:
小怪兽 (2016-09-19 17:49)
评价: 3.7%
[论坛版主行为规定]+[PITIVI簡易教程]+[CAD裝draftsight]+[酷我音乐裝kwplayer]+[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
送出感谢: 3 次
接收感谢: 0

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

#3

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

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

代码: 全选

sudo apt-get -f install
[email protected]:~$ 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
送出感谢: 3 次
接收感谢: 0

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

#4

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

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

代码: 全选

sudo apt-get -f install
附件
QQ图片20160918161000.png
你看下 谢谢了
头像
vickycq
论坛版主
帖子: 4552
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
送出感谢: 100 次
接收感谢: 994 次
联系:

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/*
这些用户感谢了作者 vickycq 于这个帖子:
小怪兽 (2016-09-18 17:41)
评价: 3.7%
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
小怪兽
帖子: 10
注册时间: 2016-09-18 16:04
系统: win
送出感谢: 3 次
接收感谢: 0

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/*
这是第一个命令
[email protected]:~$ 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/"
这是第二个命令
[email protected]:~$ 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
这是第三个命令
[email protected]:~$ 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
送出感谢: 3 次
接收感谢: 0

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/*
这是第一个命令

代码: 全选

[email protected]:~$ 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/"
这是第二个命令

代码: 全选

[email protected]:~$ 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
这是第三个命令

代码: 全选

[email protected]:~$ 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
论坛版主
帖子: 4552
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
送出感谢: 100 次
接收感谢: 994 次
联系:

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。
这些用户感谢了作者 vickycq 于这个帖子:
小怪兽 (2016-09-18 19:52)
评价: 3.7%
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
小怪兽
帖子: 10
注册时间: 2016-09-18 16:04
系统: win
送出感谢: 3 次
接收感谢: 0

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
回复

回到 “数据库管理”