Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Unwated upgrade to buster/sid

If none of the specific sub-forums seem right for your thread, ask here.
Message
Author
User avatar
Scorpion
Posts: 389
Joined: 2018-10-17 11:38
Has thanked: 5 times

Unwated upgrade to buster/sid

#1 Post by Scorpion »

These are my repos:

Code: Select all

inxi -r
Repos:
  Active apt repos in: /etc/apt/sources.list
  1: deb http://deb.debian.org/debian stretch main contrib non-free
  2: deb-src http://deb.debian.org/debian stretch main contrib non-free
  3: deb http://deb.debian.org/debian stretch-updates main contrib non-free
  4: deb-src http://deb.debian.org/debian stretch-updates main contrib non-free
  5: deb http://security.debian.org/debian-security/ stretch/updates main contrib non-free
  6: deb-src http://security.debian.org/debian-security/ stretch/updates main contrib non-free
  7: deb http://ftp.debian.org/debian stretch-backports main contrib non-free
I used apt upgrade and it downloaded 1 gb of packages.
After the system did not boot.
I discovered that it also installed the 4.18 kernel from buster/sid.
I already installed the 4.18 kernel from stretch-backports that works fine. So I booted into that and removed the 4.18 from sid. I also had to reinstall grub.
And then I discovered that I was on buster/sid. I' m using this https://unix.stackexchange.com/question ... -downgrade to get back to stable (stretch).
My question is how so? :?: :?: :?:
How can I make sure that this won' t happen again?

Bulkley
Posts: 6386
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: Unwated upgrade to buster/sid

#2 Post by Bulkley »

What's in /etc/apt/sources.list.d ?

User avatar
RU55EL
Posts: 546
Joined: 2014-04-07 03:42
Location: /home/russel

Re: Unwated upgrade to buster/sid

#3 Post by RU55EL »

Bulkley wrote:What's in /etc/apt/sources.list.d ?
Doesn't inxi -r show that? It seems to on my system:

Code: Select all

russel@u55a:~$ inxi -r
Repos:     Active apt sources in file: /etc/apt/sources.list
           deb http://deb.debian.org/debian/ stretch main
           deb http://deb.debian.org/debian/ stretch-updates main
           deb http://security.debian.org/ stretch/updates main
           Active apt sources in file: /etc/apt/sources.list.d/stretch-backports.list
           deb http://deb.debian.org/debian stretch-backports main contrib

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: Unwated upgrade to buster/sid

#4 Post by stevepusser »

Bulkley wrote:What's in /etc/apt/sources.list.d ?
inxi reports active repos there, too. There's got to be more to this than is being reported, unless someone took over the OP's system remotely just to make a FrankenDebian, then erased all traces on their way out.
MX Linux packager and developer

No_windows
Posts: 505
Joined: 2015-08-05 03:03

Re: Unwated upgrade to buster/sid

#5 Post by No_windows »

You may want to read through this thread.

http://forums.debian.net/viewtopic.php?f=5&t=138047

I was experiencing something similar. When I had learned enough about capturing evidence I found it was actually backports, not the next release. I still don't know why backports was causing a problem, periodically.

I'm not saying the solution to your problem is necessarily found in my thread, but it may provide some help.

User avatar
Scorpion
Posts: 389
Joined: 2018-10-17 11:38
Has thanked: 5 times

Re: Unwated upgrade to buster/sid

#6 Post by Scorpion »

I added the ansible ppa to have the latest version (not needed) since the official site states that was ok for debian. I had some problem with that on another machine (maybe). https://wiki.debian.org/DontBreakDebian
I removed the ppa, I must never add some again. So maybe was the ppa.
Or the backports since the No_window post http://forums.debian.net/viewtopic.php? ... 7&start=60, another machine with same OS and sources is fine.
At some point while downgrading it stopped working I used tty 2 to dpkg --configure -a since it was using apt.
Now it doesn' t boot anymore (also when using recovery mode):

Code: Select all

fsck.ext4: error while loading shared libraries: libcom_err.so2: cannot open shared object file: No such file or directory.
The root filesystem on /dev/sda3 requires a manual fsck
BusyBox v1.22.1 /Debian 1:1.22.0-19+b3) built-in shell (ash)
(initramfs)_
I cannot do fsck I get that error again.
Maybe I should reinstall the OS.

xepan
Posts: 89
Joined: 2018-11-28 06:38

Re: Unwated upgrade to buster/sid

#7 Post by xepan »

Scorpion wrote: My question is how so? :?: :?: :?:
How can I make sure that this won' t happen again?
1) No way to tell how it happened as it isn't like that anymore.

2) Stop doing random things to prevent it from happening again. If you run in a problem, ask instead of doing even more random things.
Round the lines of this:
In order to troubleshoot your problem with apt-get, apt or aptitude we need ALL OF THE FOLLOWING information:
1. complete output of your apt-get/apt/aptitude run (including the command used)
2. output from "apt-cache policy pkg1 pkg2..." for ALL packages mentioned ANYWHERE in the problem, and
3. "apt-cache policy". ...
Maybe I should reinstall the OS.
If it was me that's what i i would do. Makes only sense if next time you take it more serious, Else you might just as well keep breaking your existing installation.

User avatar
Scorpion
Posts: 389
Joined: 2018-10-17 11:38
Has thanked: 5 times

Re: Unwated upgrade to buster/sid

#8 Post by Scorpion »

Right now I can only use the BusyBox(?) so no apt, aptitude etc. (as I said).
Using a live and chroot maybe I can fix it but that pc has little things on it so is easier and faster to reinstall the OS.
Furthermore it will clean all the mess.
Random things?

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1404
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 46 times
Been thanked: 70 times

Re: Unwated upgrade to buster/sid

#9 Post by None1975 »

Scorpion wrote:I added the ansible ppa to have the latest version (not needed) since the official site states that was ok for debian. I had some problem with that on another machine (maybe). https://wiki.debian.org/DontBreakDebian
I removed the ppa, I must never add some again. So maybe was the ppa.
PPA is not ok in Debian. It creates a FrankenDebian.
Scorpion wrote:Maybe I should reinstall the OS.
I think you don't have enough experience to know how to fix your system when things go wrong. So complete reinstall is the best solution for you.
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

User avatar
Scorpion
Posts: 389
Joined: 2018-10-17 11:38
Has thanked: 5 times

Re: Unwated upgrade to buster/sid

#10 Post by Scorpion »

official ansible site says that is tested
Latest Releases via Apt (Debian)

Debian users may leverage the same source as the Ubuntu PPA.

Add the following line to /etc/apt/sources.list:

deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main

Then run these commands:

$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
$ sudo apt-get update
$ sudo apt-get install ansible

Note

This method has been verified with the Trusty sources in Debian Jessie and Stretch but may not be supported in earlier versions.
I 'm asking indeed how fix the pc. Or I will reinstall the OS.
How can I fix it?

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Unwated upgrade to buster/sid

#11 Post by GarryRicketson »

You can do what you want, but if you read what the Debian wiki says:
https://wiki.debian.org/DontBreakDebianOn Debian installing software from random websites is a bad habit. ---snip (suggest reading it all care fully), ----
<more>..Don't blindly follow bad advice

Unfortunately there's a lot of bad advice on the Internet. Tutorials found on blogs, forums and other sites often include instructions that will break your system in subtle ways. Don't simply follow the first advice you find, or the tutorial that seems the easiest. Spend some time reading the documentation and compare the difference between tutorials.
-----
Post by Scorpion » 2018-12-11 09:06
official ansible site says that is tested---snip---
If you prefer using this ansible site, that is fine, personally I wouldn't, but if you want to follow their advise, then perhaps best also to ask them for the support on their advice as well. Maybe they are reliable, maybe not, I have never used them my self.
Post by Scorpion »I 'm asking indeed how fix the pc. Or I will reinstall the OS.
How can I fix it?

From what I see, in this thread is you are not following the advice given, so this may be pointless, but I would re-install the system, with the current Debian Stable, (stretch) if I wanted to use Debian. You all ready have been told that, :
xepan wrote:
Scorpion wrote: My question is how so? :?: :?: :?:
How can I make sure that this won' t happen again?
1) No way to tell how it happened as it isn't like that anymore.

2) Stop doing random things to prevent it from happening again. If you run in a problem, ask instead of doing even more random things.
Round the lines of this:
In order to troubleshoot your problem with apt-get, apt or aptitude we need ALL OF THE FOLLOWING information:
1. complete output of your apt-get/apt/aptitude run (including the command used)
2. output from "apt-cache policy pkg1 pkg2..." for ALL packages mentioned ANYWHERE in the problem, and
3. "apt-cache policy". ...
Maybe I should reinstall the OS.
If it was me that's what i i would do. Makes only sense if next time you take it more serious, Else you might just as well keep breaking your existing installation.
I will add, if you want to experiment with all sorts of random things , from random sites, and test the advice from random websites, that is fine, but use VM for that,... now that your main system is wrecked, Oh well, that is a learning process, after you install a stable ,clean system, use QEMU or what ever Virtual machine software you prefer, set up a VM and do the experiments on that. This way when it crashes you just lose the VM and not your entire system.

User avatar
Scorpion
Posts: 389
Joined: 2018-10-17 11:38
Has thanked: 5 times

Re: Unwated upgrade to buster/sid

#12 Post by Scorpion »

I already disabled that ansible source from sources because I don' t trust it.
As I said I won' t add it anymore as for other "random" packages.
I installed only ansible I' not trying random packages from random sites.
And maybe as stevepusser said someone else added some things to sources.
Who knows if was ansible to cause this problem.
The advices given is to reinstall the system, I know that I can do that and seems the best solution unless someone knows a method to fix it. Since I don' t care if I have some not perfect things in the system as long I can use it fine.

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1404
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 46 times
Been thanked: 70 times

Re: Unwated upgrade to buster/sid

#13 Post by None1975 »

Scorpion wrote:I already disabled that ansible source from sources because I don' t trust it.
Unfortunately, this is not enough...
Scorpion wrote:I installed only ansible
What about dependencies? Where do we know what files were modified? As i said before, that crap delicately damaged your system.
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

milomak
Posts: 2168
Joined: 2009-06-09 22:20
Been thanked: 2 times

Re: Unwated upgrade to buster/sid

#14 Post by milomak »

Scorpion wrote: The advices given is to reinstall the system, I know that I can do that and seems the best solution unless someone knows a method to fix it. Since I don' t care if I have some not perfect things in the system as long I can use it fine.
it's a problem if you are unable to maintain a mixed system as it means you will be back asking about something else that has broken. reinstalling iy seems to me from your questions is the quickest and easiest way to sort everything out.
Desktop: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10, Arch Linux, Gentoo, Solus
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid

User avatar
Scorpion
Posts: 389
Joined: 2018-10-17 11:38
Has thanked: 5 times

Re: Unwated upgrade to buster/sid

#15 Post by Scorpion »

milomak wrote:
Scorpion wrote: The advices given is to reinstall the system, I know that I can do that and seems the best solution unless someone knows a method to fix it. Since I don' t care if I have some not perfect things in the system as long I can use it fine.
it's a problem if you are unable to maintain a mixed system as it means you will be back asking about something else that has broken. reinstalling iy seems to me from your questions is the quickest and easiest way to sort everything out.
Now the system doesn' t boot after I tried that link (first post).
So I cannot use it at all!
If I had not have a problem with network folders sharing and no screen sharing option I would have kept buster.
Yes the quickest ands easiest I am about to do it but since that is not my main pc I could have learned something.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: Unwated upgrade to buster/sid

#16 Post by stevepusser »

I doubt that the Ansible PPA could have damaged the system or caused an update to Buster/Sid, but what actually happens remains a mystery.

Upstream Debian now has Timeshift 18.9, which can be used to create system snapshots before one tries messing with a stable system, plus it's easily backportable to Stretch and Jessie, so I'll set up an OBS repo with Jessie and Stretch packages.
MX Linux packager and developer

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: Unwated upgrade to buster/sid

#17 Post by stevepusser »

Timeshift 18.9 Jessie and Stretch backports: https://build.opensuse.org/package/show ... /timeshift
MX Linux packager and developer

User avatar
Scorpion
Posts: 389
Joined: 2018-10-17 11:38
Has thanked: 5 times

Re: Unwated upgrade to buster/sid

#18 Post by Scorpion »

stevepusser wrote:I doubt that the Ansible PPA could have damaged the system or caused an update to Buster/Sid, but what actually happens remains a mystery.

Upstream Debian now has Timeshift 18.9, which can be used to create system snapshots before one tries messing with a stable system, plus it's easily backportable to Stretch and Jessie, so I'll set up an OBS repo with Jessie and Stretch packages.
Yes I think so.
A system snapshot what is exactly? I can use it to restore the system?
Anyway now I can' t make a bootable usb that pc refuses to work.
isobin corrupted or missing with dvd1 9.5, dvd1 9.6 non-free, live ldxe.non-free
I used the netinstaller the first time so I used again but I get only this:
_

User avatar
Scorpion
Posts: 389
Joined: 2018-10-17 11:38
Has thanked: 5 times

Re: Unwated upgrade to buster/sid

#19 Post by Scorpion »

That pc has another OS that works, so it is not totally defective (is a little old).
I tried another iso but:

Code: Select all

_
I used 2 usb sticks.
So maybe the bios or something is defective? I cannot use bootable usb on that pc anymore.
I never did a bootable dvd. Best way?
Can I use burn option with brasero?
Edit I found how https://wiki.debian.org/BurnCd#Burn_the ... D.2C_or_BD

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: Unwated upgrade to buster/sid

#20 Post by stevepusser »

Scorpion wrote:
stevepusser wrote:I doubt that the Ansible PPA could have damaged the system or caused an update to Buster/Sid, but what actually happens remains a mystery.

Upstream Debian now has Timeshift 18.9, which can be used to create system snapshots before one tries messing with a stable system, plus it's easily backportable to Stretch and Jessie, so I'll set up an OBS repo with Jessie and Stretch packages.
Yes I think so.
A system snapshot what is exactly? I can use it to restore the system?
Anyway now I can' t make a bootable usb that pc refuses to work.
isobin corrupted or missing with dvd1 9.5, dvd1 9.6 non-free, live ldxe.non-free
I used the netinstaller the first time so I used again but I get only this:
_
Yes, that's what a system snapshot means. In case Google doesn't work for you:
Timeshift

Timeshift for Linux is an application that provides functionality similar to the System Restore feature in Windows and the Time Machine tool in Mac OS. Timeshift protects your system by taking incremental snapshots of the file system at regular intervals. These snapshots can be restored at a later date to undo all changes to the system.

In RSYNC mode, snapshots are taken using rsync and hard-links. Common files are shared between snapshots which saves disk space. Each snapshot is a full system backup that can be browsed with a file manager.

In BTRFS mode, snapshots are taken using the in-built features of the BTRFS filesystem. BTRFS snapshots are supported only on BTRFS systems having an Ubuntu-type subvolume layout (with @ and @home subvolumes).

Timeshift is similar to applications like rsnapshot, BackInTime and TimeVault but with different goals. It is designed to protect only system files and settings. User files such as documents, pictures and music are excluded. This ensures that your files remains unchanged when you restore your system to an earlier date. If you need a tool to backup your documents and files please take a look at the excellent BackInTime application which is more configurable and provides options for saving user files.

Features
Minimal Setup

Timeshift requires very little setup. Just install it, run it for the first time and take the first snapshot. Cron job can be enabled for taking automatic snapshots of the system at regular intervals. The backup levels can be selected from the Settings window.

Snapshots are saved by default on the system (root) partition in path /timeshift. Other linux partitions can also be selected. For best results the snapshots should be saved to an external (non-system) partition.
MX Linux packager and developer

Post Reply