当我尝试通过突触进行更新时,获取“'文件'不同于系统上的同一文件”


11

通过Synaptic Manager更新时遇到错误。随后的更新在输出的底部给出了错误。我是菜鸟,因此可以提供任何帮助。

al@al:~$ sudo apt-get -f upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following NEW packages will be installed:
  libjack-jackd2-0:i386
The following packages have been kept back:
  linux-headers-generic skype
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 0 B/202 kB of archives.
After this operation, 493 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 310056 files and directories currently installed.)
Unpacking libjack-jackd2-0:i386 (from .../libjack-jackd2-0_1.9.8~dfsg.2-1precise1_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libjack-jackd2-0_1.9.8~dfsg.2-1precise1_i386.deb (--unpack):
 './usr/share/doc/libjack-jackd2-0/buildinfo.gz' is different from the same file on the system
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libjack-jackd2-0_1.9.8~dfsg.2-1precise1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Answers:


20

具体答案

在终端中尝试以下命令:

sudo dpkg -r libjack-jackd2-0
sudo apt-get -f install
sudo apt-get update
sudo apt-get upgrade

这些命令将删除有问题的文件,尝试修复损坏的依赖关系并更新系统。


一般答案

处理时遇到错误:
/ var / cache / apt / archives / libjack-jackd2-0 _1.9.8〜dfsg.2-1precise1_i386.deb
E:子进程/ usr / bin / dpkg返回错误代码(1)

如果您收到E: Sub-process /usr/bin/dpkg returned an error code (1)应该是错误代码(1)),则可以考虑以下几点尝试解决此问题:

  • 在之后记下软件包名称/var/cache/apt/archives/。在这种情况下,文件名是libjack-jackd2-0_1.9.8~dfsg.2-1precise1_i386.deb,因此程序包名称是libjack-jackd2-0(通常使用文件名直到第一个“ _”)。考虑到这些,只需运行以下命令:

    sudo dpkg -r libjack-jackd2-0
    sudo apt-get -f install
    sudo apt-get update
    sudo apt-get upgrade
    

如果失败,Dpkg将返回大多数错误作为代码(1)。那不是重要的信息,重要的是'./usr/share/doc/libjack-jackd2-0/buildinfo.gz' is different from the same file on the system
Braiam 2014年

0

是的,我知道这个问题已经得到回答,并且答案被接受。

但是我知道另一种解决方案。

rm /usr/share/doc/libjack-jackd2-0/buildinfo.gz

这样可以解决冲突,dpkg -i /path/to/deb/file.deb并且可以成功运行。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.