Ubuntu 22.04 LTS critical APT issue: installing libudev1 causes other packages to be uninstalled

In the Ubuntu 22.04 desktop distribution, when users did not enable updating packages over the network, installing libudev1 resulted in the removal of a large number of critical packages and made the system largely unusable.

As shown above, such a simple apt install command can cause system damage.

According to Ubuntu's bug log , the problem can be roughly summed up as: "apt will try to satisfy the requirement to install the latest libudev1 without upgrading other packages, but since this conflicts with other non-essential packages, it will remove them package." For the packages it removes, it may include ubuntu-desktop and other key packages for the user ...

This issue was reported to Ubuntu by users in May, and two months later, a patch to fix the issue is being actively merged into upstream APT and eventually ported to Ubuntu 22.04. This change will upgrade installed reverse dependencies when breaking "Depends" after upgrading dependencies. For future releases of Ubuntu/Debian, it looks like this merge for APT is being carried over, and when one of the source packages is upgraded/installed, all other binaries are upgraded.

Guess you like

Origin www.oschina.net/news/202965/ubuntu-22-04-apt-breaks-things