无法安装Vim(取决于:vim-common(= 2:7.4.1689-3ubuntu1.2)但要安装2:7.4.1689-3ubuntu1)

oop鱼

我正在尝试安装Vim。我收到以下错误

$ sudo apt-get install vim

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libpng12-0 : Breaks: libpng12-0:i386 (!= 1.2.50-2+deb8u3) but 1.2.54-1ubuntu1 is to be installed
 libpng12-0:i386 : Breaks: libpng12-0 (!= 1.2.54-1ubuntu1) but 1.2.50-2+deb8u3 is to be installed
 vim : Depends: vim-common (= 2:7.4.1689-3ubuntu1.2) but 2:7.4.1689-3ubuntu1 is to be installed
       Depends: vim-runtime (= 2:7.4.1689-3ubuntu1.2) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

然后我尝试在没有软件包的情况下运行apt-get -f install。然后我得到了这个错误

  The following additional packages will be installed:
libpng12-0
The following packages will be upgraded:
  libpng12-0
1 upgraded, 0 newly installed, 0 to remove and 594 not upgraded.
3 not fully installed or removed.
Need to get 116 kB of archives.
After this operation, 11.3 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu xenial/main amd64 libpng12-0 amd64 1.2.54-1ubuntu1 [116 kB]
Fetched 116 kB in 1s (69.8 kB/s)     
(Reading database ... 240235 files and directories currently installed.)
Preparing to unpack .../libpng12-0_1.2.54-1ubuntu1_amd64.deb ...
Unpacking libpng12-0:amd64 (1.2.54-1ubuntu1) over (1.2.50-2+deb8u3) ...
dpkg: error processing archive /var/cache/apt/archives/libpng12-0_1.2.54-1ubuntu1_amd64.deb (--unpack):
 trying to overwrite shared '/usr/share/doc/libpng12-0/ANNOUNCE', which is different from other instances of package libpng12-0:amd64
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libpng12-0_1.2.54-1ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

如果有人可以提出此错误的原因及其解决方案,那将非常有帮助.Iam使用Ubuntu 16.04

$ cat /etc/apt/sources.list

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu/ xenial main restricted
# deb-src http://archive.ubuntu.com/ubuntu/ xenial main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted
# deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://archive.ubuntu.com/ubuntu/ xenial universe
# deb-src http://archive.ubuntu.com/ubuntu/ xenial universe
deb http://archive.ubuntu.com/ubuntu/ xenial-updates universe
# deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu/ xenial multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://archive.ubuntu.com/ubuntu/ xenial-updates multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse

## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu xenial partner
# deb-src http://archive.canonical.com/ubuntu xenial partner

deb http://security.ubuntu.com/ubuntu xenial-security main restricted
# deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
# deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
# deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
奥林洪

可能的解决方法是重命名该目录,然后像这样强制安装,

sudo mv /usr/share/doc/libpng12-0 /usr/share/doc/libpng12-0.backup
sudo apt-get -f install

否则这也可能解决您的问题,

sudo apt-get install libpng12-0 libpng12-0:i386

来源

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

取决于:libnss3(> = 2:3.26)但要安装2:3.21-1ubuntu4

来自分类Dev

将Debian移植到RISC-V时出错:vim-tiny:取决于:vim-common(= 2:8.1.2269-1)但要安装2:8.2.0378-1

来自分类Dev

垫片签名:取决于:垫片(= 15+1533136590.3beb971-0ubuntu1)但要安装 13-0ubuntu2

来自分类Dev

“未满足的依赖关系。bluez:Conflicts_ bluez-alsa:i386,但要安装4.98-2ubuntu7”

来自分类Dev

代码:取决于:libgconf-2-4但未安装

来自分类Dev

VIM替换为$ 1,$ 2,$ 3和$ 4

来自分类Dev

如何重复序列:r中的1,2,3,4,5,6,1,2,3,4,5,6,7,8,9,10,7,8,9,10

来自分类Dev

在用户键入(1 2 3 4 5 6 7 8 9 10)时无法显示正确的最大值

来自分类Dev

R for回路向量1,2,2,3,3,3,4,4,4,4,..,10,

来自分类Dev

R:如何制作序列(1,1,1,2,3,3,3,4,5,5,5,6,7,7,7,8)

来自分类Dev

R:如何制作序列(1,1,1,2,3,3,3,4,5,5,5,6,7,7,7,8)

来自分类Dev

下划线或lazy.js映射(0,1,2,3,4)+(1,2,3,4,5)->(1,3,5,7,9)

来自分类Dev

postgresql-client-13:取决于:libpq5(> = 13〜beta2)但要安装12.3-1.pgdg18.04 + 1

来自分类Dev

php5-fpm:取决于:php5-common(= 5.3.10-1ubuntu3.8)但要安装5.4.6-1ubuntu1.4

来自分类Dev

php5-fpm:取决于:php5-common(= 5.3.10-1ubuntu3.8)但要安装5.4.6-1ubuntu1.4

来自分类Dev

在Amazon EC2 Ubuntu实例上安装Glassfish 4

来自分类Dev

在Amazon EC2 Ubuntu实例上安装Glassfish 4

来自分类Dev

while循环| 反向计数n .... 8 7 6 5 4 3 2 1

来自分类Dev

1 2 3 4 7 8 9 p和退格键不起作用

来自分类Dev

将数组的元素添加为a [0],a [1] + a [2],a [3] + a [4] + a [5],a [6] + a [7] + a [8] + a [9] ...等等

来自分类Dev

C中{0,1,2,3,4,5,6,7,8,9}外的条件

来自分类Dev

while循环| 反向计数n .... 8 7 6 5 4 3 2 1

来自分类Dev

Javascript - 找到 1-4-7, 2-5-8, 3-6-9 iretartions?

来自分类Dev

Ubuntu 12.04:无法安装apache2-common

来自分类Dev

Ubuntu 12.04:无法安装apache2-common

来自分类Dev

我想把数组 [1,2,3,4,5,6,7,8,9,10,11] 变成数组 [1,2,3,4,5,6,7,8,9,1 ,0,1,1] 仅使用此算法

来自分类Dev

为什么 int arr[]={0,3,2,4,5,6,7}; 给出错误和 int arr[7]={0,3,2,4,5,6,7}; 不是

来自分类Dev

创建序列0、0、0、0、0、1、1、1、1、1、2、2、2、2、2、3、3、3、3、3、4、4、4、4、4 ,带有seq()的4

来自分类Dev

如何生成图案5 5 5 5 5 4 4 4 4 3 3 3 2 2 1

Related 相关文章

  1. 1

    取决于:libnss3(> = 2:3.26)但要安装2:3.21-1ubuntu4

  2. 2

    将Debian移植到RISC-V时出错:vim-tiny:取决于:vim-common(= 2:8.1.2269-1)但要安装2:8.2.0378-1

  3. 3

    垫片签名:取决于:垫片(= 15+1533136590.3beb971-0ubuntu1)但要安装 13-0ubuntu2

  4. 4

    “未满足的依赖关系。bluez:Conflicts_ bluez-alsa:i386,但要安装4.98-2ubuntu7”

  5. 5

    代码:取决于:libgconf-2-4但未安装

  6. 6

    VIM替换为$ 1,$ 2,$ 3和$ 4

  7. 7

    如何重复序列:r中的1,2,3,4,5,6,1,2,3,4,5,6,7,8,9,10,7,8,9,10

  8. 8

    在用户键入(1 2 3 4 5 6 7 8 9 10)时无法显示正确的最大值

  9. 9

    R for回路向量1,2,2,3,3,3,4,4,4,4,..,10,

  10. 10

    R:如何制作序列(1,1,1,2,3,3,3,4,5,5,5,6,7,7,7,8)

  11. 11

    R:如何制作序列(1,1,1,2,3,3,3,4,5,5,5,6,7,7,7,8)

  12. 12

    下划线或lazy.js映射(0,1,2,3,4)+(1,2,3,4,5)->(1,3,5,7,9)

  13. 13

    postgresql-client-13:取决于:libpq5(> = 13〜beta2)但要安装12.3-1.pgdg18.04 + 1

  14. 14

    php5-fpm:取决于:php5-common(= 5.3.10-1ubuntu3.8)但要安装5.4.6-1ubuntu1.4

  15. 15

    php5-fpm:取决于:php5-common(= 5.3.10-1ubuntu3.8)但要安装5.4.6-1ubuntu1.4

  16. 16

    在Amazon EC2 Ubuntu实例上安装Glassfish 4

  17. 17

    在Amazon EC2 Ubuntu实例上安装Glassfish 4

  18. 18

    while循环| 反向计数n .... 8 7 6 5 4 3 2 1

  19. 19

    1 2 3 4 7 8 9 p和退格键不起作用

  20. 20

    将数组的元素添加为a [0],a [1] + a [2],a [3] + a [4] + a [5],a [6] + a [7] + a [8] + a [9] ...等等

  21. 21

    C中{0,1,2,3,4,5,6,7,8,9}外的条件

  22. 22

    while循环| 反向计数n .... 8 7 6 5 4 3 2 1

  23. 23

    Javascript - 找到 1-4-7, 2-5-8, 3-6-9 iretartions?

  24. 24

    Ubuntu 12.04:无法安装apache2-common

  25. 25

    Ubuntu 12.04:无法安装apache2-common

  26. 26

    我想把数组 [1,2,3,4,5,6,7,8,9,10,11] 变成数组 [1,2,3,4,5,6,7,8,9,1 ,0,1,1] 仅使用此算法

  27. 27

    为什么 int arr[]={0,3,2,4,5,6,7}; 给出错误和 int arr[7]={0,3,2,4,5,6,7}; 不是

  28. 28

    创建序列0、0、0、0、0、1、1、1、1、1、2、2、2、2、2、3、3、3、3、3、4、4、4、4、4 ,带有seq()的4

  29. 29

    如何生成图案5 5 5 5 5 4 4 4 4 3 3 3 2 2 1

热门标签

归档