2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Raspberryでsudo apt updateのエラーが出たときの対処法

Posted at

Raspberryを再構築している時にエラーが出たのでその対処法のまとめ。
エラー内容

$ sudo apt update
ヒット:1 http://archive.raspberrypi.org/debian bullseye InRelease                                                
ヒット:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease                                             
パッケージリストを読み込んでいます... エラー!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/raspbian.raspberrypi.org_raspbian_dists_bullseye_main_binary-armhf_Packages
E: パッケージリストまたはステータスファイルを解釈またはオープンすることができません。

対処法

sudo rm /var/lib/apt/lists/* -vf

以上

あとは煮るなり焼くなりsudo apt-get updateするだけ。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?