
昨天的 x86_64 從 15.10 升級到 16.04 似乎進展順利,但我遇到了這種情況:
$ sudo apt-get install --reinstall desktop-file-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libgdata-common libgdata22 libgoa-1.0-0b libgoa-1.0-common liboauth0
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 5 not upgraded.
2 not fully installed or removed.
Need to get 0 B/7,564 kB of archives.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for desktop-file-utils:amd64
$
系統上沒有太多東西,所以我很想重新安裝,但如果有更簡單的解決方案,那就太好了。谷歌搜尋並沒有幫助我解決這個問題。
謝謝,
麥克風
答案1
我遇到了這個錯誤,但包名稱不同。
首先,看起來您有一些部分安裝/配置的軟體包。執行 dpkg --configure -a 嘗試解決這些問題。如果出現任何錯誤,請觀察列出的套件名稱。完成目標包後,您需要刪除它們並完全重新安裝它們。
對我有幫助的是清除有問題的包,清除緩存,然後重新安裝。
# apt-get purge <partially installed/configured packages>
# apt-get clean; apt-get update
# apt-get install <package name(s)>
您也可以下載單獨的軟體包,並透過 dpkg -i check 安裝http://packages.ubuntu.com/xenial/
# wget http://mirrors.kernel.org/ubuntu/pool/main/d/desktop-file-utils/desktop-file-utils_0.22-1ubuntu5_amd64.deb
# dpkg -i desktop-file-utils_0.22-1ubuntu5_amd64.deb
答案2
虛驚。問題確實存在,但我添加了另一個 ppa,我感興趣的包似乎是真正的罪魁禍首。副作用是我發布的問題。刪除 ppa 後,一切又恢復正常了。