Update Qubes-Whonix ™
End-of-life Software[edit]
It is inadvisable to run software that has reached end-of-life status. Developers do not fix existing defects, bugs or vulnerabilities in this case, leading to serious security risks.
For example, in 2018 VLC Media Player in Debian jessie
had reached end-of-life status in May of that year. In that case, Whonix ™ users who did not utilize a different media player were at risk, because VLC in Debian
jessie
has unpatched security vulnerabilities. This VLC vulnerability does not apply to the current stable Whonix ™ 16 release which is based on Debian bullseye
.
Installing Additional Software[edit]
See Install Software.
Updates[edit]
Standard Update vs Release Upgrade[edit]
This procedure is for normal ("everyday") updates of Qubes-Whonix ™ and will not perform a Release Upgrade.
Before applying a release upgrade, it is recommended to first complete a standard update in both the whonix-gw-16
and whonix-ws-16
Templates, via xfce4-terminal
:
Qubes App Menu(blue/grey "Q")
→Template: whonix-gw-16
→xfce4-terminal
Qubes App Menu(blue/grey "Q")
→Template: whonix-ws-16
→xfce4-terminal
Afterward, perform the Standard Update Steps below in both terminals.
Warnings[edit]
- At least once a day, Qubes users should update the system package lists in all Templates, Standalones and
dom0
with the latest version information on new and updated packages that are available for download. [1] - Below are some warnings and issues which are general Qubes bugs and unspecific to Qubes-Whonix ™. Primary sources from Qubes OS are referenced as links with specific citations.
Quote Qubes OS "How to update" warning
:
Warning: Updating exclusively with direct commands such as
qubes-dom0-update
,dnf update
, andapt update
is not recommended, since these bypass built-in Qubes OS update security measures. Instead, we strongly recommend first using the Qubes Update tool or its command-line equivalents, as described below, then using the direct commands for confirmation (see #6585and PR #79
). (By contrast, installing
packages using direct package manager commands is fine.)
- Qubes Update tool
- For updating using command-line, refer to Qubes OS "How to update"
:
The situation is however complicated due to Qubes Updater Issues
, most notably such as:
- qubes-dom0-update shows
No updates available
in case of network is down /qubes-dom0-update
fails to notice if repositories are unreachable / network is down,
- Updating via Salt falsely claims to succeed when it actually fails
and
- Replace built-in Qube Manager update functionality with the Qubes Update tool
.
Standard Update Steps[edit]
Note: Updating Tor Browser is a separate issue; see Update Tor Browser.
1. Update the Package Lists
At the time of writing, it is discouraged
to update
whonix-gw-16
and whonix-ws-16
Template packages lists using Qube Manager (Qube Manager
→ left-click whonix-gw-16 or whonix-ws-16
→ Update qube system (blue arrow)
). [2]
For similar reasons, it is also discouraged to open a terminal in the Template and run.
The output should look similar to this.
If an error message like this appears. [3]
Or this.
Then something went wrong. It could be:
- A temporary Tor exit relay or server failure that should resolve itself; or
- One or more Onion Services might be non-functional.
In the first case, check if the network connection is functional by changing the Tor circuit and/or run systemcheck to try and diagnose the problem. In the second case, try setting clearnet repository links before attempting to update again.
Sometimes a message like this will appear.
It that case, it helps to run.
And then try again.
2. Upgrade
If using a terminal, run the following command to install the latest system package versions. [4]
Please note if the Whonix ™ APT Repository was disabled (see Disable Whonix ™ APT Repository), then manual checks are required for new Whonix ™ releases along with manual installation from source code.
3. Never Install Unsigned Packages!
If a message like this appears.
Then do not proceed! Press N and <enter>. Running apt update again should fix the problem. If not, something is broken or it is a Man-in-the-Middle Attack, which is not that unlikely since updates are retrieved over Tor exit relays and some of them are malicious. Changing the Tor circuit is recommended if this message appears.
4. Signature Verification Warnings
There should be no signature verification warnings at present; if it occurs, it will look similar to this.
Caution is required in this case, even though apt
will automatically ignore repositories with expired keys or signatures, and no upgrades will be received from that repository. Unless the issue is already known or documented, it should be reported for further investigation.
There are two possible reasons why this could happen. Either there is an issue with the repository that the contributors have yet to fix or the user is the victim of a Man-in-the-Middle Attack. [5] The latter is not a big issue, since no malicious packages are installed. Further, it may automatically resolve itself after a period of time when a different, non-malicious Tor exit relay is used, or following a manual change of the Tor circuit.
In the past, various apt repositories were signed with an expired key. To inspect how the documentation appeared at that point, please click on Expand on the right.
For instance, the Tor Project's apt repository key had expired and the following warning appeared.
This issue had already been reported. There was no immediate danger and it could have safely been ignored. Just make sure to never install unsigned packages as explained above.
For another example, see the more recent Whonix apt repository keyexpired error.
Although an unlikely outcome, please report any other signature verification errors if/when they appear.
5. Changed Configuration Files
Be careful if a message like this appears.
It is safest to press y
, but any customized settings will be lost (these can be re-added afterwards). [6] [7]
See also:
6. Shutdown the Template
Shutdown the Template from Qube Manager: Qube Manager
→ right-click on Template
→ Shutdown VM
or via the contextual menu.
7. Restart/Update Whonix ™ VMs
If new updates were available and installed, it is necessary to either:
- Restart any running Whonix-Gateway ™ ProxyVMs (
sys-whonix
) or Whonix-Workstation ™ App Qube instances (anon-whonix
) so they are updated; or - Apply the same update process in any running VMs if an immediate restart is inconvenient.
Note: If any dom0
packages were upgraded during Qubes system updates, reboot the computer to profit from any security updates.
Non-functional Onion Services[edit]
Sometimes the Debian, Whonix ™ or Qubes onion servers are non-functional. This means updates cannot be completed automatically and an error message similar to below will appear.
Until the onion service is re-established, complete the following steps in Whonix-Gateway ™ (whonix-gw-16
) and Whonix-Workstation ™ (whonix-ws-16
) to circumvent the issue. [8] [9]
1. Open Debian sources.list in an editor.
Open file /etc/apt/sources.list.d/debian.list
in an editor with administrative (root) write permissions.
This box uses sudoedit
for better security. This is an example and other tools can also achieve the same goal. If this example does not work for you or if you are not using Whonix ™, please refer to this link
.
2. Comment (#) the .onion address lines and uncomment the clearnet address lines.
The code blocks should look like this; only these entries require editing. [10]
Save and exit.
3. Confirm the clearnet repositories are functional.
4. Optional: Revert and update the package lists.
Consider reverting these changes later on because onion repositories have various security advantages. Afterwards, apply Updates to refresh the package lists.
Updating with Extra Care[edit]
See How-to: Install or Update with Utmost Caution.
Footnotes[edit]
- ↑ See: How to update
.
- ↑
Quote
Andrew David Wong, Community Manager, @QubesOS. CCO, Invisible Things Lab
:
3. Selecting a VM in the Qube Manager and pressing the "Update" button. [...]. (3) is a weird in-between method that is inferior to (2). For example, historically, not all of the Salt fixes applied by (2) have been applied by (3), which is a security problem.
- ↑
https://forums.whonix.org/t/cant-update-any-whonixvm-in-qubes-4-0-or-whonixcheck/6023
- ↑ Steps 1 and 2 can be combined with:
upgrade-nonroot
. - ↑ Rollback or indefinite freeze attacks as defined by The Update Framework (TUF) - Threat Model - Attacks and Weaknesses - https://github.com/theupdateframework/tuf/blob/develop/docs/SECURITY.md
- http://www.webcitation.org/6F7Io2ncN
.
- ↑ Or Whonix ™ changes can be delayed, inspected, and then backported if the effort is worth it.
- ↑
Whonix ™ uses package
config-package-dev
which assumes ownership of configuration files coming from “other distributions” (mostly Debian, although third party repositories might be added by users). (Whonix ™ on
config-package-dev
) - ↑ If similar issues occur with Whonix ™ or Qubes onion services then follow the same procedure and modify the
derivative.list
andqubes-r4.list
files, respectively. - ↑ https://forums.whonix.org/t/errors-updating-september-2018/6028
- ↑ There is no Debian onion for fasttrack yet.