LoginSignup
2
0

More than 5 years have passed since last update.

ubuntuでdpkg: error: parsing file '/var/lib/dpkg/status' near line ***

Posted at

ubuntuが(おそらく)セキュリティの自動アップデートの後、apt-get installで、タイトルの現象になってハマったのでメモ。

ダメだった情報

ここに色々対処案が投稿されていて、これでなおるならこれの方が良さそう。自分の場合ダメだった。
http://askubuntu.com/questions/109994/dpkg-error-parsing-file-var-lib-dpkg-status-near-line-6449

結局

/var/lib/dpkg/status を開くと、Descriptionにバイナリ文字が混入したらしく文字化けしてぶっこわれたデータが…エディタでぶっこわれたデータをDescriptionタグごと全部消し、上記URLの以下対処で綺麗にして、その後どうにか動いている。

sudo apt-get update
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove
sudo apt-get -f install

関連?

その後 libupnp3-dev というパッケージが壊れていたらしく、依存パッケージのインストールが失敗した。個別でremoveして復旧。

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0