2018年12月18日 星期二

[linux] 怎麼解決 dpkg-divert: error: rename involves overwriting '/usr/sbin/update-icon-caches' with different file '/usr/sbin/update-icon-caches.gtk2', not allowed

怎麼解決 dpkg-divert: error: rename involves overwriting '/usr/sbin/update-icon-caches' with different file '/usr/sbin/update-icon-caches.gtk2', not allowed
的類似問題呢?

使用了 apt-get -f install
還是有上述錯誤

像是

fter 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:
可以採用這樣的方式去處理錯誤訊息中的檔案

sudo mv /usr/lib/xorg/protocol-precise.txt /usr/lib/xorg/protocol-precise.txt.bak
sudo apt-get -f install


apt - dpkg-divert: error: rename involves overwriting `/usr/lib/xorg/protocol.txt' with different file `/usr/lib/xorg/protocol-precise.txt', not allowed - Ask Ubuntu https://askubuntu.com/questions/419304/dpkg-divert-error-rename-involves-overwriting-usr-lib-xorg-protocol-txt-wit

沒有留言:

張貼留言