
所以我一直在嘗試安裝freeglut3-dev
Ubuntu 14.04 LTS,但是每當我輸入終端命令時,我都會收到以下錯誤(每當我嘗試安裝其他軟體包時也會發生同樣的情況)-
rohitrango@rohitrango-G551JX:~$ sudo apt-get install freeglut3-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
freeglut3-dev is already the newest version.
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-34 linux-headers-4.4.0-34-generic
linux-image-4.4.0-34-generic linux-image-extra-4.4.0-34-generic
linux-signed-image-4.4.0-34-generic
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up click (0.4.21.1ubuntu0.2) ...
Traceback (most recent call last):
File "/usr/bin/click", line 31, in <module>
from click import commands
ImportError: cannot import name 'commands'
dpkg: error processing package click (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of click-apparmor:
click-apparmor depends on click; however:
Package click is not configured yet.
dpkg: error processing package click-apparmor (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of upstart-app-launch:
upstart-app-launch depends on click-apparmor; however:
Package click-apparmor is not configured yet.
dpkg: error processing package upstart-app-launch (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of upstart-app-launch-tools:
upstart-app-launch-tools depends on upstart-app-launch (= 0.3+14.04.20140411-0ubuntu1); however:
Package upstart-app-launch is not configured yet.
dpkg: error processing package upstart-app-launch-tools (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because MaxReports is reached already
Errors were encountered while processing:
click
click-apparmor
upstart-app-launch
upstart-app-launch-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
rohitrango@rohitrango-G551JX:~$
因此,我嘗試sl
從系統中刪除該軟體包,看看是否收到相同的錯誤。我確實這樣做了,但在這裡,包裹實際上被刪除了。我不是專家,所以我真的不知道發生了什麼事。
非常感謝任何幫助!謝謝!
答案1
上面的日誌顯示:“freeglut3-dev 已經是最新版本了。”所以你的系統中有這個應用程序,它還說有一些軟體包未使用,可以刪除。我建議你先更新系統
sudo apt update
然後安裝更新
sudo apt upgrade
安裝系統更新
sudo apt dist-upgrade
安裝缺少的依賴項
sudo apt install -f
然後清理不需要的包
sudo apt-get autoremove
sudo apt-get autoclean
現在嘗試安裝一些東西。