How to remove backports repo safely, so I can upgrade to LMDE 6?

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
lexx
Level 1
Level 1
Posts: 9
Joined: Sun Aug 20, 2023 10:04 pm

How to remove backports repo safely, so I can upgrade to LMDE 6?

Post by lexx »

[ split from tutorial viewtopic.php?t=371253 ]

How do I safety roll back the made "backports"-changes? I have LMDE 5 (Elsie) and I'd like to upgrade now to ver. 6 (Faye).
The output of
dpkg-query -W | grep '~bpo'
apt-clone 0.4.3+nmu1~bpo11+1
linux-headers-6.1.0-0.deb11.11-amd64 6.1.38-4~bpo11+1
linux-headers-6.1.0-0.deb11.11-common 6.1.38-4~bpo11+1
linux-headers-6.1.0-0.deb11.7-amd64 6.1.20-2~bpo11+1
linux-headers-6.1.0-0.deb11.7-common 6.1.20-2~bpo11+1
linux-headers-6.1.0-0.deb11.9-amd64 6.1.27-1~bpo11+1
linux-headers-6.1.0-0.deb11.9-common 6.1.27-1~bpo11+1
linux-headers-amd64 6.1.38-4~bpo11+1
linux-image-6.1.0-0.deb11.11-amd64 6.1.38-4~bpo11+1
linux-image-6.1.0-0.deb11.7-amd64 6.1.20-2~bpo11+1
linux-image-6.1.0-0.deb11.9-amd64 6.1.27-1~bpo11+1
linux-image-amd64 6.1.38-4~bpo11+1
linux-kbuild-6.1 6.1.38-4~bpo11+1
webp-pixbuf-loader 0.0.5-5~bpo11+1

The /etc/apt/sources.list.d/official-package-repositories.list
contains:
deb http://packages.linuxmint.com elsie main upstream import backport #id:linuxmint_main

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

deb https://deb.debian.org/debian bullseye-backports main contrib non-free

As I understand it, I have to comment out or just remove lines:
1) deb https://deb.debian.org/debian bullseye-backports main contrib non-free
2) and (or do not?) the "backport" from this line:
deb http://packages.linuxmint.com elsie main upstream import backport #id:linuxmint_main

Then I have to remove installed from backports "linux-image-"s and "linux-headers-"
and then run apt update, to update local repositories. (the original 5th kernel files are still there so I do not care about it )

But what about other packages, "linux-kbuild-6.1" , "webp-pixbuf-loader", "apt-clone"?
Last edited by LockBot on Tue Apr 23, 2024 10:00 pm, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
xenopeek
Level 25
Level 25
Posts: 29739
Joined: Wed Jul 06, 2011 3:58 am

Re: How to remove backports repo safely, so I can upgrade to LMDE 6?

Post by xenopeek »

lexx wrote: Mon Oct 23, 2023 9:59 am As I understand it, I have to comment out or just remove lines:
1) deb https://deb.debian.org/debian bullseye-backports main contrib non-free
Yes, remove only that line. Leave the other line. The backports on packages.linuxmint.com has nothing to do with Debian backports. It holds core Linux Mint packages: http://packages.linuxmint.com/list.php? ... e#backport

Then I think reboot and in the GRUB boot menu opt to boot a 5.10 kernel.

You must downgrade the kernel meta packages to the Bullseye version:
apt install -t bullseye linux-image-amd64 linux-headers-amd64
You should have the 5.10.197 versions of these 2 meta packages, not the 6.1.38 ones. And do you also have the linux-kbuild-5.10 package still installed? Else reinstall that. Then afterwards, as you're now booted from the 5.10 kernel, you should be able to uninstall the kernel packages from backports. Do it with apt purge packagename to also remove configuration files.

The apt-clone and webp-pixbuf-loader packages don't exist in Bullseye so I'd suggest to uninstall them if that is possible (if nothing else depends on them). After upgrading to LMDE 6 you can reinstall them as they do exist in Bookworm.
Image
lexx
Level 1
Level 1
Posts: 9
Joined: Sun Aug 20, 2023 10:04 pm

Re: How to remove backports repo safely, so I can upgrade to LMDE 6?

Post by lexx »

Yes, thanks, I upgraded the system.
Just one notice: add to the mintupgrade-utility a check whether the dnscrypt-proxy installed or not, because in the Debian Bookworm this package is missing and it should be also uninstalled before the upgrade, and the network settings must be returned then to default, accordingly. Otherwise, at one of the last steps, the network breaks and upgrade accordingly breaks as well .
User avatar
xenopeek
Level 25
Level 25
Posts: 29739
Joined: Wed Jul 06, 2011 3:58 am

Re: How to remove backports repo safely, so I can upgrade to LMDE 6?

Post by xenopeek »

lexx wrote: Mon Oct 23, 2023 2:32 pm Otherwise, at one of the last steps, the network breaks and upgrade accordingly breaks as well .
Could you elaborate why the network broke? dnscrypt-proxy isn't in Bookworm but mintupgrade only warns you, it doesn't force a uninstall.
Image
lexx
Level 1
Level 1
Posts: 9
Joined: Sun Aug 20, 2023 10:04 pm

Re: How to remove backports repo safely, so I can upgrade to LMDE 6?

Post by lexx »

xenopeek wrote: Tue Oct 24, 2023 6:19 am mintupgrade only warns you
This is the point, I didn't receive a notification that dnscrypt must be uninstalled. That's why I suggested you to add this notification to mintupgrade, because it could be useful for some users who had the dnscrypt on Elsie and want to upgrade to Faye.

I mean the installation breaks because the apt or mintupgrade didn't downloaded all the packages, and since the dnscrypt is going to be removed during the upgrade (since it isn't in debian bookworms), the minupgrade at some point in time can't resolve the repositories, because in the NetworkManager's settings the address of DNS server is the local address, 127.0.2.1 (for dnscrypt-proxy), and minupgrade just can't resolve the IPs.
My upgrade process just stopped on the last step and I had notification, the following packages could not be installed:
"mint-l-icons
mint-l-theme
pipewire-audio
switcheroo-control".
And there was only one button: "Try again". I tried - no result.
Then I tried, to execute "apt update" in terminal, also with key "--fix-missing". It didn't work because the apt couldn't receive the packages information, since it was no internet connection. I called the dnscrypt and the system couldn't find it. Then I changed the internet (connection's) settings (in NetworkManager), particularly the settings of DNS to default , restarted NM and tried proceed with mintupgrade and it worked .

After the system was upgraded I tried to install dnscrypt anew, and the apt couldn't find it. An Internet search gave the answer - the dnscrypt isn't in Bookworm.
User avatar
clem
Level 12
Level 12
Posts: 4310
Joined: Wed Nov 15, 2006 8:34 am
Contact:

Re: How to remove backports repo safely, so I can upgrade to LMDE 6?

Post by clem »

Fixed in mintupgrade 2023.10.24.
Image
Locked

Return to “Software & Applications”