無法使用 apt 安裝任何軟體包

無法使用 apt 安裝任何軟體包

我的 Ubuntu(Ubuntu 10.04.4 LTS,lucid)上的某些軟體包似乎已損壞,導致我無法安裝任何新軟體包。我在這個網站上遇到過類似的問題,但一切都證明毫無用處。以下是我嘗試過的一些命令以及輸出:

'sudo apt-get install -f' OR 'sudo apt-get --fix-broken install':


Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 44 not upgraded.
6 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up gcalctool (5.30.0.is.5.28.2-0ubuntu3) ...


dpkg: error processing gcalctool (--configure):


 subprocess installed post-installation script returned error exit status 245

Setting up shared-mime-info (0.71-1ubuntu2) ...

Segmentation fault

dpkg: error processing shared-mime-info (--configure):

 subprocess installed post-installation script returned error exit status 139

Setting up update-manager (1:0.134.12.1) ...

dpkg: error processing update-manager (--configure):

 subprocess installed post-installation script returned error exit status 245

Setting up vino (2.28.2-0ubuntu2.2) ...

dpkg: error processing vino (--configure):

 subprocess installed post-installation script returned error exit status 245


No apport report written because MaxReports is reached already
Setting up libgweather-common (2.30.0-0ubuntu1.1) ...

dpkg: error processing libgweather-common (--configure):

 subprocess installed post-installation script returned error exit status 245

No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of libgweather1:

 libgweather1 depends on libgweather-common (>= 2.24.0); however:

  Package libgweather-common is not configured yet.

dpkg: error processing libgweather1 (--configure):

 dependency problems - leaving unconfigured

No apport report written because MaxReports is reached already
Processing triggers for menu ...

Errors were encountered while processing:

 gcalctool

 shared-mime-info

 update-manager

 vino

 libgweather-common

 libgweather1

E: Sub-process /usr/bin/dpkg returned an error code (1)


* 'sudo dkpg --configure -a':
Setting up shared-mime-info (0.71-1ubuntu2) ...

Segmentation fault

dpkg: error processing shared-mime-info (--configure):

 subprocess installed post-installation script returned error exit status 139

Setting up gcalctool (5.30.0.is.5.28.2-0ubuntu3) ...

dpkg: error processing gcalctool (--configure):

 subprocess installed post-installation script returned error exit status 245

Setting up libgweather-common (2.30.0-0ubuntu1.1) ...

dpkg: error processing libgweather-common (--configure):

 subprocess installed post-installation script returned error exit status 245

Setting up vino (2.28.2-0ubuntu2.2) ...

dpkg: error processing vino (--configure):

 subprocess installed post-installation script returned error exit status 245

Setting up update-manager (1:0.134.12.1) ...

dpkg: error processing update-manager (--configure):

 subprocess installed post-installation script returned error exit status 245

dpkg: dependency problems prevent configuration of libgweather1:

 libgweather1 depends on libgweather-common (>= 2.24.0); however:

  Package libgweather-common is not configured yet.

dpkg: error processing libgweather1 (--configure):

 dependency problems - leaving unconfigured

Processing triggers for menu ...

Errors were encountered while processing:

 shared-mime-info

 gcalctool

 libgweather-common

 vino

 update-manager

 libgweather1

希望有人能幫助我,先謝謝了!

[編輯]:我終於透過重新安裝系統解決了這個問題。其實我不需要重新安裝,只是重新配對系統,所有資料都完好無損。

答案1

作為最後的手段,我會去 Synaptic 套件管理器並嘗試它的“修復損壞的包" 下的選單項編輯菜單。如果失敗,我會在同一個程式中檢查所有損壞的軟體包並刪除它們(如果它在突觸中失敗,只需在終端中執行sudo apt-get remove),然後我sudo apt-get autoremove會這樣做udo apt-get autoclean

在嘗試安裝它們之前,您需要執行sudo apt-get update

順便問一下,您嘗試安裝的最後一個軟體包是什麼?這很重要,應該成為您問題的一部分!

相關內容