web-dev-qa-db-ja.com

dpkg:linux-headers-3.2.0-35の処理中にエラーが発生しました

端末でプログラムをインストール、更新、またはアンインストールするたびに、これが表示されます

Sudo apt-get autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED
  linux-headers-3.2.0-35-generic-pae
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 11.3 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 251024 files and directories currently installed.)
Removing linux-headers-3.2.0-35-generic-pae ...
dpkg: error processing linux-headers-3.2.0-35-generic-pae (--remove):
 unable to securely remove ': File name too long
Errors were encountered while processing:
 linux-headers-3.2.0-35-generic-pae
E: Sub-process /usr/bin/dpkg returned an error code (1)

私もdpkgを削除しようとしましたが、ターミナルから同じエラーが発生しました。 Aptitudeも機能しません。それを修正する解決策はありますか?

2
Andrew

Ubuntuソフトウェアアップデーターが作業を行いました。部分的なアップグレードオプションが利用可能であり、ジェネリックリストは自動的に更新されました。

0
Andrew

http://www.iasptk.com/ubuntu-fix-broken-package-best-solution

試した後

Sudo dpkg --configure -a

そして

Sudo apt-get install -f

壊れたパッケージの問題が依然として存在する解決策は、dpkgステータスファイルを手動で編集することです。

$ Sudo gedit /var/lib/dpkg/status    (you can use vi or nano instead of gedit)

破損したパッケージを見つけ、それに関する情報のブロック全体を削除して、ファイルを保存します。

0
ptheo