You are not logged in.

#1 2022-11-18 10:45

neill
Member
Registered: 2022-11-18
Posts: 1

Reset repos

Hi, I used unstable debian repos for a while and when I wanted to come back to the standard repos, unfortunately some packages did not downgrade properly and now I get these errors when I try running upgrade.
HCGUt4q.png

filip@filip-x260:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libc-dev-bin : Depends: libc6 (< 2.32) but 2.36-5 is installed
 libc6 : Breaks: locales (< 2.36) but 2.31-13+deb11u4 is installed
 libc6:i386 : Breaks: locales (< 2.36) but 2.31-13+deb11u4 is installed
 libc6-dev : Depends: libc6 (= 2.31-13+deb11u4) but 2.36-5 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

grepolist:

filip@filip-x260:~$ qrepolist
cat: /etc/apt/sources.list: No such file or directory
deb http://q4os.org/q4repo q4os-4-0-cn main
deb http://q4os.org/qtderepo bullseye basic
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
deb http://q4os.org/qextrepo bullseye-plasmalooks-cn main
deb http://q4os.org/qextrepo bullseye-libreoffice-cn main
deb http://download.opensuse.org/repositories/home:/ungoogled_chromium/Debian_Bullseye/ /
deb http://ppa.launchpad.net/lutris-team/lutris/ubuntu lunar main
deb [arch=amd64 signed-by=/usr/share/keyrings/obs-onedrive.gpg] https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/Debian_11/ ./
deb [arch=amd64,i386] https://repo.steampowered.com/steam/ stable steam
deb [arch=amd64] https://packages.microsoft.com/repos/ms-teams stable main

sudo apt --fix-broken install wants to uninstall Q4OS dekstop locales....

WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  q4os-desktop locales (due to q4os-desktop)
0 upgraded, 0 newly installed, 293 to remove and 8 not upgraded.
44 not fully installed or removed.
After this operation, 1431 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'

Thanks a lot for your help guys!

Offline

#2 2022-11-20 02:35

tlmiller76
Member
From: AZ, USA
Registered: 2016-11-29
Posts: 453

Re: Reset repos

So, short version...just back up your information and reinstall.  It's the easiest way to go from sid back to stable.

Long version.  To get back to stable, you're going to have to set up >1000 pinning, and learn how to use apt policy <package> to see avaialble versions of a package to downgrade using the apt install <package>=<version>

It's not quick, it's not clean, and it WILL result in some packages getting removed that you can then reinstall, but it can be done.  However, it's actually faster if you have backups to just reinstall.  By a lot.


Q4OS Trinity machine - Lenovo K14 Gen1 AMD.  AMD Ryzen R5-5650U, 32GB DDR4, 1TB SSD, Vega 7, Realtek 8852 Wifi 6E + BT 5.2.

Offline

Board footer

Powered by FluxBB