Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Solved] apt update parsing issues

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
jiffypop23
Posts: 13
Joined: 2012-02-03 00:46

[Solved] apt update parsing issues

#1 Post by jiffypop23 »

I have Debian Bullseye only running Pihole for my network. It's mainly just been a setup and check for updates once a month or so kind of thing with no issues.
The Pihole admin panel was giving a 503 today so I ssh'd in to see the issue.
I ran apt update, and it would start parsing then give me this and stop

Code: Select all

Problem parsing dependency 21 of adduser:▒all=1.2.4-1
(note the odd square character)

I backed up/cleared /var/lib/apt/lists and tried apt clean/apt update, to no success.
I rebooted, and now apt update drops segfaults before giving the adduser parse error.

Code: Select all

Reading package lists... Error!
E: Method http has died unexpectedly!
E: Sub-process http received a segmentation fault.
E: Method /usr/lib/apt/methods/http did not start correctly
E: Method http has died unexpectedly!
E: Sub-process http received a segmentation fault.
E: Method /usr/lib/apt/methods/http did not start correctly
E: Method http has died unexpectedly!
E: Sub-process http received a segmentation fault.
E: Method /usr/lib/apt/methods/http did not start correctly
E: Method http has died unexpectedly!
E: Sub-process http received a segmentation fault.
E: Method /usr/lib/apt/methods/http did not start correctly
E: Failed to fetch http://deb.debian.org/debian/dists/bullseye/InRelease
E: Failed to fetch http://security.debian.org/debian-security/dists/bullseye-security/InRelease
E: Failed to fetch http://deb.debian.org/debian/dists/bullseye-updates/InRelease
E: Failed to fetch http://archive.raspberrypi.org/debian/dists/bullseye/InRelease
E: Some index files failed to download. They have been ignored, or old ones used instead.
E: Problem parsing dependency 21 of adduser:▒all=1.2.4-1
E: Error occurred while processing adduser (NewVersion2)
E: Problem with MergeList /var/lib/dpkg/status
E: The package lists or status file could not be parsed or opened.
/var/lib/dpkg/status has a lot of strange characters everywhere throughout it's text, but I'm not sure how to fix that, what could have caused that, or if that's normal.

My sources.list

Code: Select all

deb http://deb.debian.org/debian bullseye main contrib non-free
deb http://security.debian.org/debian-security bullseye-security main contrib non-free
deb http://deb.debian.org/debian bullseye-updates main contrib non-free


edit: sd card was corrupted. even had file corruption with a reinstall. new sd card is going good so far
Last edited by jiffypop23 on 2022-08-04 04:10, edited 1 time in total.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: apt update parsing issues

#2 Post by Head_on_a_Stick »

Check the filesystem health. Is this on an SD card?
deadbang

jiffypop23
Posts: 13
Joined: 2012-02-03 00:46

Re: apt update parsing issues

#3 Post by jiffypop23 »

It is, yeah. both status-old and other backups all seem to have some corruption too. I tried rebuilding a status file, but it's still giving the http segfaults when attempting an apt update.
Not sure how the system could have gotten this borked, I leave it on and just run an update every few weeks or so.
I'll probably just have to nuke and reinstall unfortunately.

Post Reply