This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
start:upgrade [2022/03/23 19:11] – 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 ' |
- | There is one exception, 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. | + | 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 other weird/edge exceptions, for example, the ppa graphics driver team for Ubuntu provide newer graphics drivers | ||
== 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: | + | deb http://deb.debian.org/ |
- | {{:images: | + | deb-src http:// |
- | If a line had something like ' | + | deb http:// |
+ | deb-src http:// | ||
+ | </ | ||
+ | NEW sources.list: | ||
+ | < | ||
+ | deb http:// | ||
+ | deb-src http:// | ||
+ | deb http:// | ||
+ | deb-src http:// | ||
+ | |||
+ | deb http:// | ||
+ | deb-src http:// | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | Next just update: | ||
+ | |||
+ | < | ||
+ | sudo apt-get update | ||
+ | sudo apt-get dist-upgrade | ||
+ | sudo reboot | ||
+ | </ | ||
+ | |||
+ | If all goes well, you are now in the testing release. Easy! | ||
+ | |||
+ | You an also cleanup any old packages you don't need anymore with: | ||
+ | |||
+ | < | ||
+ | sudo apt-get autoremove | ||
+ | </ | ||
+ | |||
+ | |||
+ | === Notes === | ||
+ | Notes: | ||
+ | From now on you can check weekly for updates, to do this just always do these commands: | ||
+ | < | ||
+ | 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: | ||