我刚刚运行apt-get upgrade
,许多数据包应该更新。我允许它们全部更新(磁盘空间和验证后的问题)。下载并配置软件包后,Ubuntu 告诉我 mysql-client-5.5 更新中出现错误。出现apt-get -f install
此错误:
The following extra packages will be installed:
mysql-client-5.5
The following NEW packages will be installed:
mysql-client-5.5
0 upgraded, 1 newly installed, 0 to remove and 441 not upgraded.
309 not fully installed or removed.
Need to get 0 B/1891 kB of archives.
After this operation, 37.5 MB of additional disk space will be used.
Do you want to continue? [Y/n]
WARNING: The following packages cannot be authenticated!
mysql-client-5.5
Install these packages without verification? [y/N] y
(Reading database ... 74373 files and directories currently installed.)
Preparing to unpack .../mysql-client-5.5_5.5.44-0+deb7u1_amd64.deb ...
Unpacking mysql-client-5.5 (5.5.44-0+deb7u1) ...
dpkg: error processing archive /var/cache/apt/archives/mysql-client-5.5_5.5.44-0 +deb7u1_amd64.deb (--unpack):
trying to overwrite '/usr/share/man/man1/mysql.1.gz', which is also in package mysql-client-core-5.5 5.5.44-0ubuntu0.14.04.1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/mysql-client-5.5_5.5.44-0+deb7u1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
我尝试了一些方法,比如使用 dpkg 工具重新安装等等,但没有任何效果。
我正在使用 Ubuntu 14.04,我真的需要帮助,因为我需要一些东西,比如带有 mysql 的 Web 服务器,而且我明天要开车去度假。我该怎么办?
答案1
要解决您的问题,请不要使用 deb 文件,如果可以通过包管理器安装包,并且不要无缘无故地使用 debian 存储库。我假设您已经从这里或类似的一侧,或者您已添加行
deb http://ftp.debian.org/debian/ wheezy-proposed-updates main
到你的sources.list
。
删除此存储库并启动以下命令
sudo apt-get update
sudo apt-get install -f
sudo apt-get install --reinstall mysql-client-5.5