The package system is broken

Kinda at a loss for what is wrong here.

I haven’t installed any new programs in a while and it’s been updating fine. Well I take that back, my daughter installed one called SnapGene to look at some of her lab data from here over christmas and I wasn’t present at the time. I think it has updated since then but I am not sure.

Attaching a screenshot of what I’m seeing.

So as it mentioned delved into a terminal and type

sudo apt update
sudo apt install -f

Copy paste what you see here

sudo apt update

Hit:1 Index of /ubuntu jammy InRelease
Hit:2 Index of /ubuntu jammy-security InRelease
Hit:3 Index of /ubuntu jammy-updates InRelease
Hit:4 Index of /ubuntu jammy-backports InRelease
Hit:5 Index of /ubuntuhandbook1/apps/ubuntu jammy InRelease
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
143 packages can be upgraded. Run ‘apt list --upgradable’ to see them.

sudo apt install -f

Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Correcting dependencies… Done
The following packages were automatically installed and are no longer required:
gir1.2-accountsservice-1.0 gir1.2-adw-1 gir1.2-gck-1 gir1.2-gcr-3
gir1.2-gdm-1.0 gir1.2-gnomebluetooth-3.0 gir1.2-graphene-1.0 gir1.2-gtk-4.0
gir1.2-mutter-10 gir1.2-nm-1.0 gir1.2-nma-1.0 gir1.2-rsvg-2.0
gir1.2-upowerglib-1.0 gnome-bluetooth-3-common gstreamer1.0-pipewire
libadwaita-1-0 libaom2 libflashrom1 libftdi1-2 libgdm1 libgnome-autoar-0-0
libgnome-bluetooth-3.0-13 libhwy0 libjxl libllvm13 libx265-192
switcheroo-control ubuntu-wallpapers ubuntu-wallpapers-jammy xwayland
yaru-theme-gnome-shell
Use ‘sudo apt autoremove’ to remove them.
The following additional packages will be installed:
libjxl0.7
The following NEW packages will be installed:
libjxl0.7
0 upgraded, 1 newly installed, 0 to remove and 143 not upgraded.
1 not fully installed or removed.
Need to get 0 B/975 kB of archives.
After this operation, 3,046 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database … 307928 files and directories currently installed.)
Preparing to unpack …/libjxl0.7_0.7.0-0build1~jammy_amd64.deb …
Unpacking libjxl0.7:amd64 (0.7.0-0build1~jammy) …
dpkg: error processing archive /var/cache/apt/archives/libjxl0.7_0.7.0-0build1~j
ammy_amd64.deb (–unpack):
trying to overwrite ‘/usr/lib/x86_64-linux-gnu/libjxl.so.0.7.0’, which is also
in package libjxl:amd64 0.7.0-20220426.105500-0xiota0~ubuntu22.04
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libjxl0.7_0.7.0-0build1~jammy_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

You need to ppa-purge the handbook ppa.

It contains a broken package that is conflicting with the package in the archive.

OK I give. I’m typing something wrong when I purge and I have tried enough different ways I have to give up and ask you to type this purge command out as it should be typed in. Im literally gonna copy & paste lol.

Every way I have tried it, it returns

Warning: Could not find package list for PPA: thenWhateverItypedThePPAnameUpAs

EXAMPLE

Warning: Could not find package list for PPA: Index of /ubuntuhandbook1/apps/ubuntu jammy InRelease

EDIT

Sorry I am just noticing these make links when typed and don’t show the actual text. Ugg

Solution to the textual problem… a screenshot.

That is an example of the first iteration I tried.

OK so I am resolved but unresolved… in that I still want to know what I did wrong with running ppa purge. I even tried typing exactly as you’ll see in this screenshot where I used the GUI tool which had a little different name as seen here.

(I unchecked this one that was checked)

Then I reran sudo apt-get install -f

Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Correcting dependencies… Done
The following packages were automatically installed and are no longer required:
gir1.2-accountsservice-1.0 gir1.2-adw-1 gir1.2-gck-1 gir1.2-gcr-3
gir1.2-gdm-1.0 gir1.2-gnomebluetooth-3.0 gir1.2-graphene-1.0 gir1.2-gtk-4.0
gir1.2-mutter-10 gir1.2-nm-1.0 gir1.2-nma-1.0 gir1.2-rsvg-2.0
gir1.2-upowerglib-1.0 gnome-bluetooth-3-common gstreamer1.0-pipewire
gthumb-data libadwaita-1-0 libaom2 libexiv2-27 libflashrom1 libftdi1-2
libgdm1 libgnome-autoar-0-0 libgnome-bluetooth-3.0-13 libhwy0 libhwy1 libjxl
libllvm13 libraw20 libx265-192 switcheroo-control ubuntu-wallpapers
ubuntu-wallpapers-jammy xwayland yaru-theme-gnome-shell
Use ‘sudo apt autoremove’ to remove them.
The following packages will be REMOVED:
gthumb
0 upgraded, 0 newly installed, 1 to remove and 143 not upgraded.
1 not fully installed or removed.
After this operation, 5,794 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database … 307927 files and directories currently installed.)
Removing gthumb (3:3.12.4-1build1~ubuntu22.04) …
Processing triggers for desktop-file-utils (0.26-1ubuntu3) …
Processing triggers for gnome-menus (3.36.0-1ubuntu3) …
Processing triggers for libc-bin (2.35-0ubuntu3.4) …
Processing triggers for man-db (2.10.2-1) …
Processing triggers for mailcap (3.70+nmu1ubuntu1) …
Processing triggers for bamfdaemon (0.5.6+22.04.20220217-0ubuntu1) …
Rebuilding /usr/share/applications/bamf-2.index…

Then I ran the GUI software updater and it ran, I just need to reboot to finish up.

I am also unresolved because I don’t know what the heck gthumb has to do with this as it was removed. It’s been on here for years and I am reasonably sure I used the GUI Software tool to install it. Really thought I did, maybe not.

Off to reboot.

sudo ppa-purge ppa:ubuntuhandbook1/apps

Very interesting.

Thank you. I ran that and this was returned.

Updating packages lists
PPA to be removed: ubuntuhandbook1 apps
Warning: Could not find package list for PPA: ubuntuhandbook1 apps

I did so because I didn’t really think it would be purged out just from unchecking the box in the GUI software tool.

I went into the file system and looked and this is what I see still. Glitch maybe? I mean things are working I’m not complaining. Should I manually delete the handbook ones from the file system?

Did I cause this by installing gthumb from elsewhere a long while ago since that was the application removed. I see it is in the software app provided. Reinstall from there and see if I break again?

Screenshot from 2024-01-10 12-12-48

Since you have just removed the sources entry the command will not work.

You need to readd the PPA via add-apt-repository

Run an apt update

Then run the ppa-purge to make sure you downgrade the packages.

Obviously, lessons learned. Do be careful who is providing the PPA and make sure you understand what packages a PPA is providing. That PPA is particularly large updating many applications. This could have future issues when uplifting to the next LTS.

Thank you.

$ sudo ppa-purge ppa:ubuntuhandbook1/apps
Updating packages lists
PPA to be removed: ubuntuhandbook1 apps
Package revert list generated:
liblcms2-2:amd64/jammy liblcms2-utils/jammy

Disabling ubuntuhandbook1 PPA from /etc/apt/sources.list.d/ubuntuhandbook1-ubuntu-apps-jammy.list
Disabling ubuntuhandbook1 PPA from /etc/apt/sources.list.d/ubuntuhandbook1-ubuntu-apps-focal.list
Updating packages lists
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Selected version ‘2.12~rc1-2build2’ (Ubuntu:22.04/jammy [amd64]) for ‘liblcms2-2’
Selected version ‘2.12~rc1-2build2’ (Ubuntu:22.04/jammy [amd64]) for ‘liblcms2-utils’
The following packages will be DOWNGRADED:
liblcms2-2 liblcms2-utils
0 upgraded, 0 newly installed, 2 downgraded, 0 to remove and 12 not upgraded.
Need to get 201 kB of archives.
After this operation, 15.4 kB disk space will be freed.
Do you want to continue? [Y/n] Y
Get:1 Index of /ubuntu jammy/main amd64 liblcms2-utils amd64 2.12~rc1-2build2 [42.2 kB]
Get:2 Index of /ubuntu jammy/main amd64 liblcms2-2 amd64 2.12~rc1-2build2 [159 kB]
Fetched 201 kB in 0s (432 kB/s)
dpkg: warning: downgrading liblcms2-utils from 2.14-0build2~jammy to 2.12~rc1-2build2
(Reading database … 306335 files and directories currently installed.)
Preparing to unpack …/liblcms2-utils_2.12~rc1-2build2_amd64.deb …
Unpacking liblcms2-utils (2.12~rc1-2build2) over (2.14-0build2~jammy) …
dpkg: warning: downgrading liblcms2-2:amd64 from 2.14-0build2~jammy to 2.12~rc1-2build2
Preparing to unpack …/liblcms2-2_2.12~rc1-2build2_amd64.deb …
Unpacking liblcms2-2:amd64 (2.12~rc1-2build2) over (2.14-0build2~jammy) …
Setting up liblcms2-2:amd64 (2.12~rc1-2build2) …
Setting up liblcms2-utils (2.12~rc1-2build2) …
Processing triggers for man-db (2.10.2-1) …
Processing triggers for libc-bin (2.35-0ubuntu3.5) …
PPA purged successfully