首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Re:安装错误

问Re:安装错误
EN

Ask Ubuntu用户
提问于 2017-03-09 10:23:19
回答 1查看 52关注 0票数 0

我为什么要

代码语言:javascript
复制
E: Sub-process /usr/bin/dpkg returned an error code (1) 

当我输入apt-get install -f时,我该如何解决?

代码语言:javascript
复制
root@john-PC:~# apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  mysql-server-5.6
Suggested packages:
  mailx tinyca
The following NEW packages will be installed:
  mysql-server-5.6
0 upgraded, 1 newly installed, 0 to remove and 15 not upgraded.
1 not fully installed or removed.
Need to get 0 B/5,766 kB of archives.
After this operation, 51.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 230930 files and directories currently installed.)
Preparing to unpack .../mysql-server-5.6_5.6.28-0ubuntu0.15.04.1_i386.deb ...
Aborting downgrade from (at least) 10.0 to 5.6.
If are sure you want to downgrade to 5.6, remove the file
/var/lib/mysql/debian-*.flag and try installing again.
dpkg: error processing archive /var/cache/apt/archives/mysql-server-5.6_5.6.28-0ubuntu0.15.04.1_i386.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/mysql-server-5.6_5.6.28-0ubuntu0.15.04.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
EN

回答 1

Ask Ubuntu用户

发布于 2017-03-09 10:53:19

这是因为mysql已经安装好了。

这方面的解决方案如下所示,请按顺序排序,其中一个将修复错误:

  1. apt-获取自动删除

  1. 配置-a

或

  1. 尝试清除mysql-服务器。

  1. 清理缓存:
代码语言:javascript
复制
sudo rm /var/cache/apt/archives/mysql-server*    
sudo apt-get update && apt-get install >package< 
票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/891177

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档