LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-17-2022, 11:36 PM   #1
centguy
Member
 
Registered: Feb 2008
Posts: 627
Blog Entries: 1

Rep: Reputation: 48
Move away from LTS


I believe I have first installed ubuntu using 20.04 LTS. But
after so many times of apt update and apt upgrade, my kernel is now

Linux ubuntu40 5.15.0-43-generic #46~20.04.1-Ubuntu

So the question: Excessive apt upgrade will make the OS to jump from LTS to non-LTS?
 
Old 08-18-2022, 12:00 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by centguy View Post
So the question: Excessive apt upgrade will make the OS to jump from LTS to non-LTS?
Not if you don't add non-LTS repos.

Evo2.
 
Old 08-18-2022, 11:13 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
No, an in place distribution upgrade should always be from one LTS version to another. I just updated my Ubuntu from 20.04 LTS to 22.04 LTS just because the automatic update process popped up a distribution upgrade window.

Just an apt update && apt upgrade will not update to a different version but you can manually upgrade using the do-release-upgrade command from a terminal.
 
Old 08-19-2022, 12:14 AM   #4
centguy
Member
 
Registered: Feb 2008
Posts: 627

Original Poster
Blog Entries: 1

Rep: Reputation: 48
Sorry, I don't quite get it.

From what I gather, if I login as root since day 1 after a LTS install, and do apt update and apt upgrade, I won't move away from LTS.
And as long as I do apt update and apt upgrade in the shell I won't leave LTS.

But if I entertain any updates from the pop ups from the Software & Updates Window or Software Updater then
I will jump from LTS to non-LTS.

If what I said is true above, then it means I have deviated from the LTS big time.

Last edited by centguy; 08-19-2022 at 12:22 AM.
 
Old 08-19-2022, 01:22 AM   #5
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by centguy View Post
From what I gather, if I login as root since day 1 after a LTS install, and do apt update and apt upgrade, I won't move away from LTS.
And as long as I do apt update and apt upgrade in the shell I won't leave LTS.
That should be true.
Quote:
Originally Posted by centguy View Post
But if I entertain any updates from the pop ups from the Software & Updates Window or Software Updater then
I will jump from LTS to non-LTS.
Sorry I don't know what things are done behind the covers by random GUI programs.
Quote:
Originally Posted by centguy View Post
If what I said is true above, then it means I have deviated from the LTS big time.
Is this purely hypothetical? If not, why not just check the state of your system?
Eg
Code:
lsb_release --all
cat /etc/os-release 
apt policy
Evo2.
 
Old 08-19-2022, 01:26 AM   #6
centguy
Member
 
Registered: Feb 2008
Posts: 627

Original Poster
Blog Entries: 1

Rep: Reputation: 48
$ lsb_release --all
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal




$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.4 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
 
Old 08-19-2022, 01:31 AM   #7
centguy
Member
 
Registered: Feb 2008
Posts: 627

Original Poster
Blog Entries: 1

Rep: Reputation: 48
But distrowatch

for row linux(5.19.2) says 5.4 under 20.04 LTS

and 5.15.0 under 22.04 jammy

But my uname -a

says

Linux ubuntu40 5.15.0-43-generic #46~20.04.1-Ubuntu


so I am thoroughly confused!
 
Old 08-19-2022, 02:22 AM   #8
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Looks like 20.04 LTS with a backported kernel. Not unusual I'd think.

You can find out where that kernel (and any others on your system) came from with apt policy. Eg

Code:
apt policy $(dpkg -l |grep linux-image | awk '{ print $2 }')
And, as per my previous post you can see configured repos with
Code:
apt policy
Evo2.
 
Old 08-19-2022, 02:29 AM   #9
centguy
Member
 
Registered: Feb 2008
Posts: 627

Original Poster
Blog Entries: 1

Rep: Reputation: 48
So am I on LTS or am I on non-LTS?


Sorry I do not understand this backported thing.


Code:
$ apt policy $(dpkg -l |grep linux-image | awk '{ print $2 }')
linux-image-5.11.0-25-generic:
  Installed: (none)
  Candidate: 5.11.0-25.27~20.04.1
  Version table:
     5.11.0-25.27~20.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        100 /var/lib/dpkg/status
linux-image-5.11.0-27-generic:
  Installed: (none)
  Candidate: 5.11.0-27.29~20.04.1
  Version table:
     5.11.0-27.29~20.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        100 /var/lib/dpkg/status
linux-image-5.11.0-38-generic:
  Installed: (none)
  Candidate: 5.11.0-38.42~20.04.1
  Version table:
     5.11.0-38.42~20.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        100 /var/lib/dpkg/status
linux-image-5.11.0-40-generic:
  Installed: (none)
  Candidate: 5.11.0-40.44~20.04.2
  Version table:
     5.11.0-40.44~20.04.2 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        100 /var/lib/dpkg/status
linux-image-5.11.0-41-generic:
  Installed: (none)
  Candidate: 5.11.0-41.45~20.04.1
  Version table:
     5.11.0-41.45~20.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        100 /var/lib/dpkg/status
linux-image-5.11.0-43-generic:
  Installed: (none)
  Candidate: 5.11.0-43.47~20.04.2
  Version table:
     5.11.0-43.47~20.04.2 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        100 /var/lib/dpkg/status
linux-image-5.11.0-44-generic:
  Installed: (none)
  Candidate: 5.11.0-44.48~20.04.2
  Version table:
     5.11.0-44.48~20.04.2 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        100 /var/lib/dpkg/status
linux-image-5.11.0-46-generic:
  Installed: (none)
  Candidate: 5.11.0-46.51~20.04.1
  Version table:
     5.11.0-46.51~20.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        100 /var/lib/dpkg/status
linux-image-5.13.0-25-generic:
  Installed: (none)
  Candidate: 5.13.0-25.26~20.04.1
  Version table:
     5.13.0-25.26~20.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        100 /var/lib/dpkg/status
linux-image-5.13.0-27-generic:
  Installed: (none)
  Candidate: 5.13.0-27.29~20.04.1
  Version table:
     5.13.0-27.29~20.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        100 /var/lib/dpkg/status
linux-image-5.13.0-28-generic:
  Installed: (none)
  Candidate: 5.13.0-28.31~20.04.1
  Version table:
     5.13.0-28.31~20.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        100 /var/lib/dpkg/status
linux-image-5.13.0-30-generic:
  Installed: (none)
  Candidate: 5.13.0-30.33~20.04.1
  Version table:
     5.13.0-30.33~20.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        100 /var/lib/dpkg/status
linux-image-5.13.0-35-generic:
  Installed: (none)
  Candidate: 5.13.0-35.40~20.04.1
  Version table:
     5.13.0-35.40~20.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        100 /var/lib/dpkg/status
linux-image-5.13.0-37-generic:
  Installed: (none)
  Candidate: 5.13.0-37.42~20.04.1
  Version table:
     5.13.0-37.42~20.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        100 /var/lib/dpkg/status
linux-image-5.13.0-39-generic:
  Installed: (none)
  Candidate: 5.13.0-39.44~20.04.1
  Version table:
     5.13.0-39.44~20.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        100 /var/lib/dpkg/status
linux-image-5.13.0-40-generic:
  Installed: (none)
  Candidate: 5.13.0-40.45~20.04.1
  Version table:
     5.13.0-40.45~20.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        100 /var/lib/dpkg/status
linux-image-5.13.0-41-generic:
  Installed: (none)
  Candidate: 5.13.0-41.46~20.04.1
  Version table:
     5.13.0-41.46~20.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        100 /var/lib/dpkg/status
linux-image-5.13.0-44-generic:
  Installed: (none)
  Candidate: 5.13.0-44.49~20.04.1
  Version table:
     5.13.0-44.49~20.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        100 /var/lib/dpkg/status
linux-image-5.13.0-48-generic:
  Installed: (none)
  Candidate: 5.13.0-48.54~20.04.1
  Version table:
     5.13.0-48.54~20.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        100 /var/lib/dpkg/status
linux-image-5.13.0-51-generic:
  Installed: (none)
  Candidate: 5.13.0-51.58~20.04.1
  Version table:
     5.13.0-51.58~20.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        100 /var/lib/dpkg/status
linux-image-5.13.0-52-generic:
  Installed: (none)
  Candidate: 5.13.0-52.59~20.04.1
  Version table:
     5.13.0-52.59~20.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        100 /var/lib/dpkg/status
linux-image-5.15.0-41-generic:
  Installed: (none)
  Candidate: 5.15.0-41.44~20.04.1
  Version table:
     5.15.0-41.44~20.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        100 /var/lib/dpkg/status
linux-image-5.15.0-43-generic:
  Installed: 5.15.0-43.46~20.04.1
  Candidate: 5.15.0-43.46~20.04.1
  Version table:
 *** 5.15.0-43.46~20.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        100 /var/lib/dpkg/status
linux-image-5.15.0-46-generic:
  Installed: 5.15.0-46.49~20.04.1
  Candidate: 5.15.0-46.49~20.04.1
  Version table:
 *** 5.15.0-46.49~20.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        100 /var/lib/dpkg/status
linux-image-5.8.0-43-generic:
  Installed: (none)
  Candidate: 5.8.0-43.49~20.04.1
  Version table:
     5.8.0-43.49~20.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        100 /var/lib/dpkg/status
linux-image-5.8.0-50-generic:
  Installed: (none)
  Candidate: 5.8.0-50.56~20.04.1
  Version table:
     5.8.0-50.56~20.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        100 /var/lib/dpkg/status
linux-image-generic-hwe-20.04:
  Installed: 5.15.0.46.49~20.04.16
  Candidate: 5.15.0.46.49~20.04.16
  Version table:
 *** 5.15.0.46.49~20.04.16 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        100 /var/lib/dpkg/status
     5.4.0.26.32 500
        500 http://us.archive.ubuntu.com/ubuntu focal/main amd64 Packages
 
Old 08-19-2022, 02:39 AM   #10
centguy
Member
 
Registered: Feb 2008
Posts: 627

Original Poster
Blog Entries: 1

Rep: Reputation: 48
So it is still LTS but the kernel has been taken from the latest version? So I conclude that
by looking at the kernel number one cannot tell it is an older LTS system that has
been backported or a brand new OS. But this is a bad thing to do.

Quote:
https://www.redhat.com/en/blog/what-...d-hat-products

How backporting works

Now we are digging into more details, what did Red Hat do to make 31.el7 and how that is different than earlier versions of the bash-4.2.46 RPM package? What we are talking about now is backporting. Literally, we are taking code from a newer version upstream and integrating it back to an older version of the software. This is one of the great things about open source.
 
Old 08-19-2022, 03:07 AM   #11
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by centguy View Post
So it is still LTS but the kernel has been taken from the latest version? So I conclude that
by looking at the kernel number one cannot tell it is an older LTS system that has
been backported or a brand new OS. But this is a bad thing to do.
The kernel is just one package, your system likely has thousands. Running a recent kernel provided by your distro is not a bad thing to do.

From you you posted you do indeed seem to be on 20.04 LTS with with security repos
correctly enabled which is where the 5.15 kernel comes from.

Not sure how relevant a Red Hat blog post is to your situation. You should be reading about Ubuntu LTS policies.

Evo2.

Last edited by evo2; 08-19-2022 at 03:08 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Ubuntu 20.04 LTS Is Now Powered by Linux Kernel 5.15 LTS from Ubuntu 22.04 LTS LXer Syndicated Linux News 0 08-03-2022 04:24 PM
LXer: Ubuntu 18.04.5 LTS Released with Linux Kernel 5.4 LTS from Ubuntu 20.04 LTS LXer Syndicated Linux News 0 08-14-2020 08:28 AM
LXer: Canonical Patches OpenSSL Regression in Ubuntu 16.04 LTS, 14.04 LTS and 12.04 LTS LXer Syndicated Linux News 0 09-27-2016 12:32 PM
LXer: CrazyFlie 6-DOF Review – Fly away now, fly away LXer Syndicated Linux News 0 04-20-2013 12:12 AM
Should I move away from RH8? If so to RH9? kierl Linux - General 21 06-11-2003 02:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration