dpkg-divert:错误:重命名涉及用不同的文件`/usr/lib/xorg/protocol-precise.txt’覆盖`/usr/lib/xorg/protocol.txt’,不允许
我刚刚安装了Ubuntu(12.04.4)并升级到13.10
我不知道如何解决这个问题:/
$ sudo apt-get install -f Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: xserver-common-lts-saucy 0 upgraded, 0 newly installed, 1 to remove and 2 not upgraded. 1 not fully installed or removed. After this operation, 1,718 kB disk space will be freed. Do you want to continue [Y/n]? y (Reading database ... 175174 files and directories currently installed.) Removing xserver-common-lts-saucy ... Removing 'diversion of /usr/lib/xorg/protocol.txt to /usr/lib/xorg/protocol-precise.txt by xserver-common-lts-saucy' dpkg-divert: error: rename involves overwriting `/usr/lib/xorg/protocol.txt' with different file `/usr/lib/xorg/protocol-precise.txt', not allowed dpkg: error processing xserver-common-lts-saucy (--remove): subprocess installed post-removal script returned error exit status 2 Errors were encountered while processing: xserver-common-lts-saucy E: Sub-process /usr/bin/dpkg returned an error code (1)
尝试以下命令,
sudo mv /usr/lib/xorg/protocol-precise.txt /usr/lib/xorg/protocol-precise.txt.bak sudo apt-get -f install
上面的命令将该文本文件protocol-precise.txt
重命名为protocol-precise.txt.bak
并修复了依赖项。
- 包管理系统在架构上搞砸了
- 使用@in密码错误进行Apt-get更新
- N:忽略目录’/etc/apt/apt.conf.d/’中的’50unattended-upgrades.ucf-dist’文件,因为它的文件扩展名无效
- sudo apt-get curl和sudo apt-get wget给出“无效操作”
- 如何在安装软件包时删除有关杯子的“未满足的依赖关系错误”?
- 如何在Xubuntu 16.10上运行XnView MP版本0.83?
- sudo apt-get install和sudo apt install有什么区别
- Troublesome Paraview安装,12.04 LTS(而不是14.04 LTS)
- 如何删除所有PPA?