Skip to content

Commit 49783d8

Browse files
authored
Fix apt installation instructions (cyberbotics#6313)
* Fix apt installation instructions * Update installation-procedure.md * Update installation-procedure.md
1 parent c106089 commit 49783d8

1 file changed

Lines changed: 13 additions & 19 deletions

File tree

docs/guide/installation-procedure.md

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -30,38 +30,32 @@ Please find instructions in [this section](verifying-your-graphics-driver-instal
3030
The advantage of this installation is that Webots will be updated automatically with system updates.
3131
The installation requires the `root` privileges.
3232

33-
First of all, Webots should be authenticated with the [Cyberbotics.asc](https://cyberbotics.com/Cyberbotics.asc) signature file which can be installed using this command:
33+
First of all, Webots should be authenticated with the [Cyberbotics.asc](https://cyberbotics.com/Cyberbotics.asc) signature file.
3434

35-
```bash
36-
wget -qO- https://cyberbotics.com/Cyberbotics.asc | sudo apt-key add -
37-
```
35+
> **Note**: You can check with `apt-key list` if this signature file was already installed using the deprecated `apt-key add` method.
36+
If so, you should delete it with `apt-key del <keyid>` before proceeding with the re-installation.
37+
Similarly, if the repository was already listed, you should remove it using `apt-add-repository -y --remove 'deb https://cyberbotics.com/debian/ binary-amd64/'`.
3838

39-
Then, you can configure your APT package manager by adding the Cyberbotics repository.
40-
Simply execute the following lines:
39+
You can install the [Cyberbotics.asc](https://cyberbotics.com/Cyberbotics.asc) signature file using this command:
4140

4241
```bash
43-
sudo apt-add-repository 'deb https://cyberbotics.com/debian/ binary-amd64/'
44-
sudo apt-get update
42+
sudo mkdir -p /etc/apt/keyrings
43+
cd /etc/apt/keyrings
44+
sudo wget -q https://cyberbotics.com/Cyberbotics.asc
4545
```
4646

47-
As an alternative, you can easily add the Cyberbotics repository from the `Software and Updates` application.
48-
In the `Other Software` tab, click on the `Add...` button and copy the following line:
49-
50-
```text
51-
deb https://cyberbotics.com/debian/ binary-amd64/
52-
```
53-
54-
When you close the window, the APT packages list should be automatically updated.
55-
Otherwise you can manually execute the following command:
47+
Then, you can configure your APT package manager by adding the Cyberbotics repository.
48+
Simply execute the following lines:
5649

5750
```bash
58-
sudo apt-get update
51+
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/Cyberbotics.asc] https://cyberbotics.com/debian binary-amd64/" | sudo tee /etc/apt/sources.list.d/Cyberbotics.list
52+
sudo apt update
5953
```
6054

6155
Then proceed to the installation of Webots using:
6256

6357
```bash
64-
sudo apt-get install webots
58+
sudo apt install webots
6559
```
6660

6761
> **Note**: Although only the command line procedure is documented here, it is also possible to use any APT front-end tool, such as the Synaptic Package Manager, to proceed with the APT installation of Webots.

0 commit comments

Comments
 (0)