This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
start:upgrade [2022/03/24 15:00] – peter | start:upgrade [2023/08/30 20:06] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | DATE CHECKED THIS PAGE WAS VALID: 29/ | ||
+ | |||
== A note on repositories == | == A note on repositories == | ||
- | For some reason I have noticed a tendency for Ubuntu users to add 3rd party repositories to their installations. This is not how apt works, and should never be done. This ' | + | For some reason I have noticed a tendency for Ubuntu users to add 3rd party repositories to their installations. This is not how apt works, and should never be done. This ' |
+ | |||
+ | You will also never mix sources from different versions of Debian or Ubuntu. For example you will never add the unstable sources at the same time as testing or stable or something weird like that. Packages can have different names and all sorts of massive problems can happen. Please never do this. If you pick testing, then thats all you get. If you pick stable, then thats all you get. Mix and matching sources = a broken install (Some exceptions with pinning apply but we dont talk about them). | ||
- | There are a couple exceptions, for example, the ppa graphics driver team for Ubuntu provide newer graphics drivers that you might need to support your Graphics hardware. This repository can be left if required. Another example is the edge browser from Microsoft which can be safely added as a repository as its distro version agnostic (it does not contain a codename like jammy or bookworm as its not designed for a specific version of a distro). | + | There are a couple |
== Upgrading from stable to the next testing release == | == Upgrading from stable to the next testing release == | ||
- | This is very easy. Both Ubuntu and Debian have a single file to modify, assuming you have not added 3rd party repositories, | + | This is very easy. Both just a single file to modify, assuming you have not added 3rd party repositories, |
- | As you have already configured Timeshift, this is safe since you can just roll back if anything breaks. See the Timeshift section on how to do this (and configure if you have not yet don that). | + | As you have already configured Timeshift, this is safe since you can just roll back if anything breaks. See the Timeshift section on how to do this (and configure if you have not yet done that and check there is at least 1 snapshot). |
- | Assuming you are on Debian Stable (as of writing it is called | + | Assuming you are on Debian Stable (as of writing it is called |
< | < | ||
- | sudo sudo nano / | + | sudo nano / |
</ | </ | ||
- | I replaced ' | + | OLD sources.list: |
+ | < | ||
+ | deb http:// | ||
+ | deb-src http:// | ||
- | {{:images:jammysources.png?400|}} | + | deb http:// |
- | {{:images:debiansources.png?400|}} | + | deb-src http://deb.debian.org/ |
+ | |||
+ | deb http:// | ||
+ | deb-src http://deb.debian.org/ | ||
+ | </ | ||
+ | NEW sources.list: | ||
+ | < | ||
+ | deb http:// | ||
+ | deb-src http:// | ||
+ | |||
+ | deb http:// | ||
+ | deb-src http:// | ||
+ | |||
+ | deb http:// | ||
+ | deb-src http:// | ||
+ | |||
+ | </ | ||
- | If a line had something like ' | ||
Next just update: | Next just update: | ||
Line 41: | Line 63: | ||
+ | === Notes === | ||
Notes: | Notes: | ||
- | Notes: | + | From now on you can check weekly for updates, to do this just always do these commands: |
- | If anyone has any other notes or useful commands or things about Apt or Sources in general, add them here. | + | < |
+ | sudo apt-get update | ||
+ | sudo apt-get dist-upgrade | ||
+ | sudo reboot | ||
+ | </ | ||
+ | Then your system is kept up to date :) - also if you wait long enough your testing version will realign with stable when it is released so you can eventually stay on stable if you have a need, simply by waiting long enough. | ||
+ | |||
+ | === Notes === | ||
+ | Notes: | ||