Unwated upgrade to buster/sid

If none of the more specific forums is the right place to ask

Unwated upgrade to buster/sid

Postby Scorpion » 2018-12-10 22:14

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?
Scorpion
 
Posts: 82
Joined: 2018-10-17 11:38

Re: Unwated upgrade to buster/sid

Postby Bulkley » 2018-12-10 23:12

What's in /etc/apt/sources.list.d ?
Bulkley
 
Posts: 5704
Joined: 2006-02-11 18:35

Re: Unwated upgrade to buster/sid

Postby RU55EL » 2018-12-10 23:20

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
RU55EL
 
Posts: 384
Joined: 2014-04-07 03:42
Location: /home/russel

Re: Unwated upgrade to buster/sid

Postby stevepusser » 2018-12-10 23:21

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.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Flightgear 2018.2.2, 4.19.13 kernel, wine-staging 4.0~rc4, Stellarium 0.18.3, VLC 3.0.5, Midori 7.0
User avatar
stevepusser
 
Posts: 10433
Joined: 2009-10-06 05:53

Re: Unwated upgrade to buster/sid

Postby No_windows » 2018-12-11 02:32

You may want to read through this thread.

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.
No_windows
 
Posts: 420
Joined: 2015-08-05 03:03

Re: Unwated upgrade to buster/sid

Postby Scorpion » 2018-12-11 08:57

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 viewtopic.php?f=5&t=138047&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.
Scorpion
 
Posts: 82
Joined: 2018-10-17 11:38

Re: Unwated upgrade to buster/sid

Postby xepan » 2018-12-11 09:15

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.
xepan
 
Posts: 86
Joined: 2018-11-28 06:38

Re: Unwated upgrade to buster/sid

Postby Scorpion » 2018-12-11 12:22

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?
Scorpion
 
Posts: 82
Joined: 2018-10-17 11:38

Re: Unwated upgrade to buster/sid

Postby None1975 » 2018-12-11 13:10

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 Stretch / WM: FVWM
Debian Wiki | DontBreakDebian, My config files in github
User avatar
None1975
 
Posts: 748
Joined: 2015-11-29 18:23
Location: Lithuania, Vilnius

Re: Unwated upgrade to buster/sid

Postby Scorpion » 2018-12-11 14:06

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?
Scorpion
 
Posts: 82
Joined: 2018-10-17 11:38

Re: Unwated upgrade to buster/sid

Postby GarryRicketson » 2018-12-11 14:49

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
GarryRicketson
 
Posts: 5238
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Unwated upgrade to buster/sid

Postby Scorpion » 2018-12-11 16:41

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.
Scorpion
 
Posts: 82
Joined: 2018-10-17 11:38

Re: Unwated upgrade to buster/sid

Postby None1975 » 2018-12-11 17:49

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 shit delicately damaged your system.
OS: Debian Stretch / WM: FVWM
Debian Wiki | DontBreakDebian, My config files in github
User avatar
None1975
 
Posts: 748
Joined: 2015-11-29 18:23
Location: Lithuania, Vilnius

Re: Unwated upgrade to buster/sid

Postby milomak » 2018-12-11 17:50

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: iMac Late-2015 27" 5K Retina (17,1 - 3.3GHz) - MacOS and Windows 10 (Bootcamp)/ Debian Sid (External SSD)
Laptop: Lenovo ideapad Y700 [nVidia Optimus] (64-bit) - Debian Sid, Win10,
Kodi Box: AMD Athlon 5150 APU w/Radeon HD 8400 - Debian Sid
milomak
 
Posts: 1867
Joined: 2009-06-09 22:20

Re: Unwated upgrade to buster/sid

Postby Scorpion » 2018-12-11 19:10

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.
Scorpion
 
Posts: 82
Joined: 2018-10-17 11:38

Next

Return to General Questions

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable