2

Is it possible to set the sources.list file to automatically have the latest stable version of the operating system, like in Debian when you set "stable"?

Zanna
  • 70,465

2 Answers2

2

No, Ubuntu does not have a comparable repository to Debian/stable.

The term 'stable' has two meanings:

Debian's 'stable' means that the software is older, has had more time to get debugged, and is less likely to crash.

Ubuntu's 'stable' (used in LTS) means that the software won't change, so it won't break your workflow. It does NOT mean 'less likely to crash'...though several years into an LTS cycle that is also true.

Ubuntu does NOT maintain testing/unstable/stable pockets that you can use in your sources.list. Those are Debian-only. Ubuntu users are expected to release-upgrade either every six months (standard release) or two years (LTS release). The system will not initiate a release-upgrade for you.

user535733
  • 62,253
-1

I don't remember if is my fault but in my configuration I had "xenial" setted so was forced to remain at latest LTS, now I setted cosmic. Like below:

deb http://it.archive.ubuntu.com/ubuntu/ cosmic main universe restricted multiverse 
deb-src http://it.archive.ubuntu.com/ubuntu/ cosmic main universe restricted multiverse 
deb http://security.ubuntu.com/ubuntu cosmic-security main universe restricted multiverse 
deb-src http://security.ubuntu.com/ubuntu cosmic-security main universe restricted multiverse 
deb http://it.archive.ubuntu.com/ubuntu/ cosmic-updates main universe restricted multiverse 
deb-src http://it.archive.ubuntu.com/ubuntu/ cosmic-updates main universe restricted multiverse

This is linked to "cosmic" so when will arrive the next version I will have to change the source file to the "d*" version of Ubuntu. I want to avoid this future edit of the file.

Kulfy
  • 17,696
  • 1
    FYI, xenial is LTS (supported till 2021) while cosmic is not (supported till July 2019). Xenial is 16.04 and cosmic is 18.10. Direct jumping to cosmic may cause your system to break. It is recommended to use do-release-upgrade instead of unnecessarily changing values in sources.list. – Kulfy Dec 31 '18 at 15:34