pop-os / pop

A project for managing all Pop!_OS sources
https://system76.com/pop
2.48k stars 87 forks source link

libglib2.0-0:i386 depends on zlib1g, but zlib1g:i386 is not configured yet #1276

Open Yuri6037 opened 4 years ago

Yuri6037 commented 4 years ago

Distribution (run cat /etc/os-release): NAME="Pop!_OS" VERSION="20.04 LTS" ID=pop ID_LIKE="ubuntu debian" PRETTY_NAME="Pop!_OS 20.04 LTS" VERSION_ID="20.04" HOME_URL="https://pop.system76.com" SUPPORT_URL="https://support.system76.com" BUG_REPORT_URL="https://github.com/pop-os/pop/issues" PRIVACY_POLICY_URL="https://system76.com/privacy" VERSION_CODENAME=focal UBUNTU_CODENAME=focal LOGO=distributor-logo-pop-os

Related Application and/or Package Version (run apt policy $PACKAGE NAME): Not applicable

Issue/Bug Description: Installing latest updates from "Operating System Updates" caused complete crash of DPKG and APT:

Steps to reproduce (if you know): Install updates from PopShop. It's not the first time this occurs. I already had issues with NVIDIA driver update causing crash of APT (fixed by reinstalling xorg-nvidia). However this time no single command from APT or DPKG work they all fail with the above listed errors.

Expected behavior: PopShop should never cause complete package manager failure.

PopShop should not need a terminal with dpkg --force depends -P libglib2.0-0:i386 in order to work properly.

Other Notes: It's annoying to have these problems while you work!! And of cause it always happens when I'm working! I have a full log of fix-broken: https://pastebin.com/5nAE9gBH Fixable using dpkg --force depends -P libglib2.0-0:i386

jeroenev commented 4 years ago

Same issue here, was about to do a reinstall. Thanks for the dpkg --force depends -P libglib2.0-0:i386 that fixed it for me. Though I agree it should not be needed Also, this doesn't only happen with the PopShopm, I always update using apt, so I'm not sure if it's a Pop package that's causing this or if it also happens on plain Ubuntu.

jacobgkau commented 4 years ago

Thank you for the report. I'm sorry that the package manager was giving you trouble.

It's annoying to have these problems while you work!! And of cause it always happens when I'm working!

The Pop!_Shop lets you know when updates are available, but it never installs updates without your permission, so you are welcome to not install updates while you're working.

Your list of commands that you tried does not include sudo dpkg --configure -a, which is one of the six commands listed in our support article for package management issues here: https://support.system76.com/articles/package-manager-pop/

Does sudo dpkg --configure -a do anything? If it doesn't solve the issue, what output are you seeing?

Fixable using dpkg --force depends -P libglib2.0-0:i386

Are you saying you've already fixed the issue on your machine?

We had a number of reports about this issue in a Reddit post: https://www.reddit.com/r/pop_os/comments/j5lpr3/dependency_problem_after_latest_update_any_ideas/

Several users reported that sudo dpkg --configure -a solved the issue. Two users stated that command did not fix the issue, but one of them said they needed to run dist-upgrade, which suggests they were running upgrade before, which is a separate problem (and the Pop!_Shop always runs dist-upgrade/full-upgrade-- anyone who is upgrading using the terminal should also use full-upgrade or dist-upgrade, which are equivalent.) The remaining user did a restore from their recovery partition, so they weren't able to provide further information about why --configure -a wasn't working.

Out of the six commands you listed, install -f and --fix-broken install (which are the same command) sound like they would have given the most relevant output. Do you have full output from that command, rather than just the generic returned an error code line? (If you weren't shown full output, that would be when we want to run sudo dpkg --configure -a to see what the exact error was.)

Like @jeroen7s said, the libglib2.0-0 issue was not caused by the Pop!_Shop; the issue also occurred on machines where sudo apt full-upgrade was being run manually. I'm renaming this issue appropriately.

You mentioned an NVIDIA driver update that you had trouble with. Was it the most recent update, 455.23? We were able to track down an issue with the Pop!_Shop's "Update" buttons not working for that update, and we released this fix, which we hoped would also fix the libglib2.0-0 issue since they both seemed to start with that update: https://github.com/pop-os/nvidia-graphics-drivers/pull/60

I had two systems left that hadn't been updated since these issues started, both NVIDIA machines. (We haven't been able to recreate the libglib2.0-0 issue from a fresh install using an iso from before the update.) While I did see the issue on a few machines before that fix was released, I just upgraded the remaining two machines and did not see the issue. Do you have /var/log/apt/history.log (and .log.1.gz, etc if they exist) so we can see whether that fix was in effect?


System76 customers can reach out to support for technical assistance. For non-System76 hardware, you can seek community support on Reddit or Mattermost.

Yuri6037 commented 4 years ago

Sure in the future I will probably wait for the weekend before running any updates. I tend to update as soon as I receive updates...

Yeah I could not leave the system in a broken state, so I just found a command intended to delete by force a package and I just used it and it fixed the Pop Shop. Full-upgrade/dist-upgrade would return similar errors as upgrade.

Regarding the log please have a look at my pastebin I sent in notes: I have a full log of fix-broken: https://pastebin.com/5nAE9gBH

I indeed did not try configure -a which I did not find when typing the error over internet. I actually did not find anything on the specific error apart from purge/dpkg remove-architecture and other commands I just listed in my post. Then I searched for a way to forcefully remove an application without testing any dependency and found the command I gave. I used it and then I could run fix-broken and finally get Pop Shop to finish the update.

I don't think this is linked to NVIDIA driver. I was just pointing out this is not the first time these kind of package manager failures happens. This time was just new with many commands just crashing.

To give a bit more context: I just clicked on an update notification on my desktop this morning after booting the system and I began updating the system like normal. For some reasons at the middle of the progress bar it just instantly show a "Finished" and then nothing more but part of the updates were still available. I tried to install NVIDIA driver got a strange error telling me DPKG stopped with error code 0. When I saw that I though the Pop Shop has failed the package manager again... I opened Terminal and here we are...

avdzm commented 4 years ago

Hello all,

for me dpkg --configure -a resolved my issue. zlib error.txt I run update and upgrade succesfully.

I also run auto clean and auto remove successfully. apt autoclean autoremove.txt

Have a good day.