Note that upgrades repo upgrades apply only to 4.1+

At noted by Marek [1] GPG keyrings for verifying 4.1+ packages only
started being available in 4.1 templates. Telling people to fetch
the keyrings through another method would make instructions too
complicated. For this reason it seems simpler to just tell people to
use the new templates instead.

[1]: https://github.com/QubesOS/qubes-doc/pull/1345#issuecomment-1803517947
This commit is contained in:
deeplow 2023-11-09 10:44:19 +00:00
parent 2b3fa9b114
commit 207b5e5019
No known key found for this signature in database
GPG Key ID: 577982871529A52A

View File

@ -31,16 +31,27 @@ in-place:
4. [Restore from your
backup](/doc/how-to-back-up-restore-and-migrate/#restoring-from-a-backup) on
your new 4.2 installation.
5. In each old the old templates update the Qubes software sources from 4.1 to Qubes 4.2. Do this by opening a teminal in each of the imported templates and running the following commands:
5. In each old the old templates update the Qubes software sources from 4.1 to Qubes 4.2.
> **Note**: If the templates were first installed on a version older than
> Qubes 4.1, you should reinstall them. For example, your first Qubes install
> was 4.0 and you've been upgrading to Qubes 4.2 via clean install ever since,
> then this affects you and you should instead use the templates that come
> preinstalled in 4.2.
If the above note does not apply, you should open a teminal in each of the
imported templates and running the following commands:
- **Debian-based templates**:
```
sudo sed -i 's/r4.[01]/r4.2/g' /etc/apt/sources.list.d/qubes-r4.list
sudo sed -i 's/r4.1/r4.2/g' /etc/apt/sources.list.d/qubes-r4.list
sudo sed -i 's|\[arch=amd64\]|\[arch=amd64 signed-by=/usr/share/keyrings/qubes-archive-keyring-4.2.gpg \]|g' /etc/apt/sources.list.d/qubes-r4.list
sudo apt update
sudo apt upgrade
```
- **Fedora-based templates**:
- **Fedora-based templates**:
```
sudo sed -i 's/r4.[01]/r4.2/g' /etc/yum.repos.d/qubes-r4.repo
sudo sed -i 's/RPM-GPG-KEY-qubes-4\(\.1\)\{0,1\}-/RPM-GPG-KEY-qubes-4.2-/g' /etc/yum.repos.d/qubes-r4.repo
sudo sed -i 's/r4.1/r4.2/g' /etc/yum.repos.d/qubes-r4.repo
sudo sed -i 's/RPM-GPG-KEY-qubes-4.1-/RPM-GPG-KEY-qubes-4.2-/g' /etc/yum.repos.d/qubes-r4.repo
sudo dnf update
```
## In-place upgrade