[SOLVED] Unintended upgrade from 18.1 to 19

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
garrr

[SOLVED] Unintended upgrade from 18.1 to 19

Post by garrr »

I installed Mint 18.1 earlier this year. Everything was fine. Today I decide to apply the latest updates to the 18.1 installation.

I executed:

sudo apt-get update
sudo apt-get upgrade

This process ran for a while.
To my surprise when it was all done I was on Mint version 19.

How is this possible?

Mint documentation describes how you update from 18 to 19 and nowhere did I see the the process I executed would do that.

What happened here?

Is this valid Mint 19 now?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
jimallyn
Level 19
Level 19
Posts: 9075
Joined: Thu Jun 05, 2014 7:34 pm
Location: Wenatchee, WA USA

Re: Unintended upgrade from 18.1 to 19

Post by jimallyn »

It ain't supposed to work that way. From 18.1 you have to first go to 18.2, then 18.3, then to 19.0. I am not sure what you did, but my guess would be you are now running some kind of FrankenMint.
“If the government were coming for your TVs and cars, then you'd be upset. But, as it is, they're only coming for your sons.” - Daniel Berrigan
sleeper12
Level 21
Level 21
Posts: 14609
Joined: Thu May 25, 2017 3:22 pm

Re: Unintended upgrade from 18.1 to 19

Post by sleeper12 »

Are you sure you have Mint 19 now, what does System Monitor say you have? Any chance you had Timeshift set up before you made these changes? If so, go back to when you had 18.1 working.
User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Unintended upgrade from 18.1 to 19

Post by catweazel »

garrr wrote: Mon Dec 10, 2018 12:16 am

Code: Select all

sudo apt-get upgrade
That would have done it. Your machine did exactly what you told it to do. This is why you should always use the update manager unless you know exactly what will happen as a result of blindly typing commands found in dubious articles on the web.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
fabien85
Level 7
Level 7
Posts: 1877
Joined: Tue Mar 11, 2014 4:30 pm

Re: Unintended upgrade from 18.1 to 19

Post by fabien85 »

catweazel wrote: Mon Dec 10, 2018 5:09 am
garrr wrote: Mon Dec 10, 2018 12:16 am

Code: Select all

sudo apt-get upgrade
That would have done it. Your machine did exactly what you told it to do. This is why you should always use the update manager unless you know exactly what will happen as a result of blindly typing commands found in dubious articles on the web.
Are you sure ?
To change Mint version, the addresses of the repositories have to be changed in /etc/apt/sources.list.d/official-package-repositories.list
I dont think a sudo apt-get upgrade does it. I have a box on Mate 18.3 and just ran an update & upgrade, reboot and same again, and it is still on 18.3, nothing changed. Even a sudo apt-get dist-upgrade does not change anything.
gm10

Re: Unintended upgrade from 18.1 to 19

Post by gm10 »

fabien85 wrote: Mon Dec 10, 2018 5:40 am
catweazel wrote: Mon Dec 10, 2018 5:09 am
garrr wrote: Mon Dec 10, 2018 12:16 am

Code: Select all

sudo apt-get upgrade
That would have done it. Your machine did exactly what you told it to do. This is why you should always use the update manager unless you know exactly what will happen as a result of blindly typing commands found in dubious articles on the web.
Are you sure ?
To change Mint version, the addresses of the repositories have to be changed in /etc/apt/sources.list.d/official-package-repositories.list
I dont think a sudo apt-get upgrade does it. I have a box on Mate 18.3 and just ran an update & upgrade, reboot and same again, and it is still on 18.3, nothing changed. Even a sudo apt-get dist-upgrade does not change anything.
Correct. I think catweazel didn't have his morning coffee yet, or more fittingly tea. :D

Probably same for the OP, unless he messed with his repositories as you said.
User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Unintended upgrade from 18.1 to 19

Post by catweazel »

fabien85 wrote: Mon Dec 10, 2018 5:40 am
catweazel wrote: Mon Dec 10, 2018 5:09 am
garrr wrote: Mon Dec 10, 2018 12:16 am

Code: Select all

sudo apt-get upgrade
That would have done it. Your machine did exactly what you told it to do. This is why you should always use the update manager unless you know exactly what will happen as a result of blindly typing commands found in dubious articles on the web.
Are you sure ?
My apologies to the OP. Clearly I was wrong.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
garrr

Re: Unintended upgrade from 18.1 to 19

Post by garrr »

My answers to the questions posed:

First, I made mistake when I said Linux mint 18.1. I actually started out with Linux Mint 18.3.

This was a vanilla install on a dedicated Dell Latitude onto a hard drive.

After the generic install I only added Google Chrome. I ran like that for a few month. And then I added a Dell printer driver.

Then I did

sudo apt-get update
sudo apt-get upgrade

Nothing else was done. No other packages were added nor did I use any third party drivers.

After doing the above:

1. When I hover with the mouse over Linux Mint Menu icon, the popup says “Linux Mint 19 Tara”
2. When I do cat /etc/linuxmint/info it says “Linux Mint 19 Tara”
3. When I do cat /etc/issue it says “Linux Mint 19 Tara”

So, somehow, I got from 18.3 to 19 without wanting to do that.

I am going to try this again. I will install a fresh copy of 18.3 next weekend and repeat:

sudo apt-get update
sudo apt-get upgrade

to see if it puts me to 19 again.

Meanwhile if anyone has any explanation please let me know.
User avatar
smurphos
Level 18
Level 18
Posts: 8498
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: Unintended upgrade from 18.1 to 19

Post by smurphos »

garrr wrote: Mon Dec 10, 2018 3:57 pm My answers to the questions posed:

First, I made mistake when I said Linux mint 18.1. I actually started out with Linux Mint 18.3.

Meanwhile if anyone has any explanation please let me know.
I think you installed 19 in the first place not 18.3.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
garrr

Re: Unintended upgrade from 18.1 to 19

Post by garrr »

Is there any way to tell what version of Mint was Originally installed. Is there any log file that would have such information?
gm10

Re: Unintended upgrade from 18.1 to 19

Post by gm10 »

garrr wrote: Mon Dec 10, 2018 5:09 pm Is there any way to tell what version of Mint was Originally installed. Is there any log file that would have such information?

Code: Select all

cat /var/log/installer/media-info 
also :lol:
sleeper12
Level 21
Level 21
Posts: 14609
Joined: Thu May 25, 2017 3:22 pm

Re: Unintended upgrade from 18.1 to 19

Post by sleeper12 »

If you still have the flash drive or cd you installed from, System Monitor will say what version it is.
rene
Level 20
Level 20
Posts: 12212
Joined: Sun Mar 27, 2016 6:58 pm

Re: Unintended upgrade from 18.1 to 19

Post by rene »

garrr wrote: Mon Dec 10, 2018 5:09 pm Is there any way to tell what version of Mint was Originally installed. Is there any log file that would have such information?
Or try zcat $(ls -t /var/log/apt/history.* | tail -1) | sed -n '/base-files:amd64/s/base-files:amd64 (\(.*\)).*/\1/p'.
garrr

Re: Unintended upgrade from 18.1 to 19

Post by garrr »

It appears that I may have to own everyone an apology

I executed:

cat /var/log/installer/media-info

as suggested and that shows: Linux Mint 19.

Moreover, the date on the file is 07-AUG and the upgrade I did was done on O8-DEC.

I've been using Linux Mint Since version 13, and this was the first question I ever posted.
It turned out to be bogus. I was really convinced that I started out with 18.3, but that seems to be wrong now,

Please accept my apologies for the wild goose chaise.
I will be more careful if I ever ask another question.
User avatar
Pierre
Level 21
Level 21
Posts: 13227
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: Unintended upgrade from 18.1 to 19

Post by Pierre »

Nah - we do like those Wild Questions - - it gets us 'thinking a bit more
:lol:

- - and catweazel is stiil probably correct:
sudo apt-get upgrade
as that command would still upgrade your installed LM18.3 - - LM19.0
- IMHO anyway.
Image
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.
rene
Level 20
Level 20
Posts: 12212
Joined: Sun Mar 27, 2016 6:58 pm

Re: Unintended upgrade from 18.1 to 19

Post by rene »

Pierre wrote: Mon Dec 10, 2018 10:28 pm sudo apt-get upgrade
as that command would still upgrade your installed LM18.3 - - LM19.0
No, it will definitely not.
User avatar
smurphos
Level 18
Level 18
Posts: 8498
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: Unintended upgrade from 18.1 to 19

Post by smurphos »

rene wrote: Mon Dec 10, 2018 10:33 pm
Pierre wrote: Mon Dec 10, 2018 10:28 pm sudo apt-get upgrade
as that command would still upgrade your installed LM18.3 - - LM19.0
No, it will definitely not.
Indeed - from man apt-get - nothing about changing sources as we all should know :wink:

Code: Select all

       upgrade
           upgrade is used to install the newest versions of all packages
           currently installed on the system from the sources enumerated in
           /etc/apt/sources.list. Packages currently installed with new
           versions available are retrieved and upgraded; under no
           circumstances are currently installed packages removed, or packages
           not already installed retrieved and installed. New versions of
           currently installed packages that cannot be upgraded without
           changing the install status of another package will be left at
           their current version. An update must be performed first so that
           apt-get knows that new versions of packages are available.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
User avatar
murray
Level 5
Level 5
Posts: 784
Joined: Tue Nov 27, 2018 4:22 pm
Location: Auckland, New Zealand

Re: Unintended upgrade from 18.1 to 19

Post by murray »

Pierre wrote: Mon Dec 10, 2018 10:28 pm - - and catweazel is stiil probably correct:
sudo apt-get upgrade
as that command would still upgrade your installed LM18.3 - - LM19.0
- IMHO anyway.
Doesn't sudo apt-get upgrade just update the list of available packages and their versions, but it does not install or upgrade any packages?
Running Mint 19.3 Cinnamon on an Intel NUC8i5BEH with 16GB RAM and 500GB SSD
User avatar
Pierre
Level 21
Level 21
Posts: 13227
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: [SOLVED] Unintended upgrade from 18.1 to 19

Post by Pierre »

since, I've not that often used the Terminal for this,
and so I've always assumed that sudo apt-get update would just update the repository,,
and using the sudo apt-get upgrade would perform the actual upgrade itself.
Image
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.
rene
Level 20
Level 20
Posts: 12212
Joined: Sun Mar 27, 2016 6:58 pm

Re: [SOLVED] Unintended upgrade from 18.1 to 19

Post by rene »

apt-get update updates local copies of the lists of packages available from your configured repositories, apt-get upgrade retrieves and installs those packages said local copies list newer versions of than are currently installed. It is equivalent to Update Manager while having set the update strategy to "always update everything" (i.e., if you don't use the Mint-specific level system),

Not even apt-get dist-upgrade will upgrade between major versions; versions that require different repositories. See man apt-get for the horse's mouth.
Locked

Return to “Installation & Boot”