autoremove出问题,安装不了其他软件了
Tofloor
poster avatar
outersky
deepin
2018-09-06 17:56
Author
  1. tony@tonybook:/opt/$ sudo apt install ftpsync
  2. Reading package lists... Done
  3. Building dependency tree      
  4. Reading state information... Done
  5. The following packages were automatically installed and are no longer required:
  6.   glx-alternative-mesa nvidia-installer-cleanup update-glx
  7. Use 'sudo apt autoremove' to remove them.
  8. The following additional packages will be installed:
  9.   exim4-base exim4-config exim4-daemon-light guile-2.0-libs libgsasl7 libkyotocabinet16v5 libmailutils5 libntlm0 mailutils mailutils-common
  10. Suggested packages:
  11.   eximon4 exim4-doc-html | exim4-doc-info spf-tools-perl swaks mailutils-mh mailutils-doc
  12. The following packages will be REMOVED:
  13.   glx-diversions
  14. The following NEW packages will be installed:
  15.   exim4-base exim4-config exim4-daemon-light ftpsync guile-2.0-libs libgsasl7 libkyotocabinet16v5 libmailutils5 libntlm0 mailutils mailutils-common
  16. 0 upgraded, 11 newly installed, 1 to remove and 6 not upgraded.
  17. 1 not fully installed or removed.
  18. Need to get 0 B/6,931 kB of archives.
  19. After this operation, 22.6 MB of additional disk space will be used.
  20. Do you want to continue? [Y/n] y
  21. Preconfiguring packages ...
  22. (Reading database ... 394326 files and directories currently installed.)
  23. Removing glx-diversions (0.8.7) ...
  24. dpkg-divert: error: rename involves overwriting '/usr/lib/i386-linux-gnu/libGL.so.1.7.0' with
  25.   different file '/usr/lib/mesa-diverted/i386-linux-gnu/libGL.so.1.7.0', not allowed
  26. dpkg: error processing package glx-diversions (--remove):
  27. installed glx-diversions package post-removal script subprocess returned error exit status 2
  28. Errors were encountered while processing:
  29. glx-diversions
  30. E: Sub-process /usr/bin/dpkg returned an error code (1)
Copy the Code


不知道什么时候开始,glx-diversions 这个要被remove掉,但是dpkg又要报错,导致现在啥也安装不了了。
求大神帮忙!
谢谢
Reply Favorite View the author
All Replies
avatar
outersky
deepin
2018-09-06 18:15
#1
--force-all 也不行。 还是我用错了?

  1. sudo dpkg  --remove --force-all glx-diversions
  2. (Reading database ... 394296 files and directories currently installed.)
  3. Removing glx-diversions (0.8.7) ...
  4. dpkg-divert: error: rename involves overwriting '/usr/lib/i386-linux-gnu/libGL.so.1.7.0' with
  5.   different file '/usr/lib/mesa-diverted/i386-linux-gnu/libGL.so.1.7.0', not allowed
  6. dpkg: error processing package glx-diversions (--remove):
  7. installed glx-diversions package post-removal script subprocess returned error exit status 2
  8. Errors were encountered while processing:
  9. glx-diversions
Copy the Code
Reply View the author