| 79 | | deb [signed-by=/usr/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt jammy universe |
| 80 | | deb [signed-by=/usr/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt impish universe |
| 81 | | deb [signed-by=/usr/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt hirsute universe |
| 82 | | deb [signed-by=/usr/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt groovy universe |
| 83 | | deb [signed-by=/usr/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt focal universe |
| 84 | | deb [signed-by=/usr/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt eoan universe |
| 85 | | deb [signed-by=/usr/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt disco universe |
| 86 | | deb [signed-by=/usr/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt bionic universe |
| | 78 | deb [signed-by=/usr/local/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt jammy universe |
| | 79 | deb [signed-by=/usr/local/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt impish universe |
| | 80 | deb [signed-by=/usr/local/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt hirsute universe |
| | 81 | deb [signed-by=/usr/local/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt groovy universe |
| | 82 | deb [signed-by=/usr/local/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt focal universe |
| | 83 | deb [signed-by=/usr/local/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt eoan universe |
| | 84 | deb [signed-by=/usr/local/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt disco universe |
| | 85 | deb [signed-by=/usr/local/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt bionic universe |
| 109 | | sudo wget -O /usr/share/keyrings/josm-apt.key https://josm.openstreetmap.de/josm-apt.key |
| 110 | | }}} |
| 111 | | |
| 112 | | {{{#!comment |
| 113 | | Below is too short and does not solve the security issue, see [https://wiki.debian.org/DebianRepository/UseThirdParty?action=show&redirect=RepositoryInstructions#Instructions_to_connect_to_a_third-party_repository] and #22148. |
| 114 | | }}} |
| 115 | | {{{#!comment |
| 116 | | or |
| 117 | | {{{#!sh |
| 118 | | curl https://josm.openstreetmap.de/josm-apt.key | gpg --dearmor > /etc/apt/trusted.gpg.d/josm.gpg |
| 119 | | }}} |
| 120 | | }}} |
| 121 | | |
| 122 | | Now refresh your sources (you may need to install `sudo apt-get install apt-transport-https`) |
| 123 | | {{{#!sh |
| | 108 | # create the local directory for keys if it was not already created |
| | 109 | sudo mkdir -p /usr/local/share/keyrings |
| | 110 | # download the key |
| | 111 | wget -q https://josm.openstreetmap.de/josm-apt.key -O- | sudo gpg --dearmor > /usr/local/share/keyrings/josm.gpg |
| | 112 | }}} |
| | 113 | |
| | 114 | Now refresh your sources: |
| | 115 | {{{#!sh |
| | 116 | # you may need to install ssl support for apt in advance: |
| | 117 | sudo apt-get install apt-transport-https |
| | 118 | # refresh sources |
| 140 | | The tested version of [https://packages.debian.org/stable/josm JOSM] is available under **''main''** in section **''utils''**. |
| 141 | | |
| 142 | | Please, use the [https://backports.debian.org backports repository] to get the up to date version, see [https://backports.debian.org/Instructions Instructions]. |
| 143 | | |
| 144 | | Alternatively, our own Ubuntu packages, [#Ubuntu above], work on Debian. Depending on the setup of `sudo`, some instruction will not work as "normal" user but only as `root`. |
| 145 | | |
| 146 | | Since Debian 11 (bullseye), [https://packages.debian.org/stable/josm-installer josm-installer] which downloads the .jar file from this site is an additional option for an up-to-date JOSM. |
| | 135 | Our own Ubuntu packages, [#Ubuntu above], work on Debian and we recommend to use them. Depending on the setup of `sudo`, some instruction will not work as "normal" user but only as `root`. |
| | 136 | |
| | 137 | Since Debian 11 (bullseye) the [https://packages.debian.org/stable/josm-installer josm-installer] is available under **''main''** in section **''utils''**, which downloads the current .jar file from this site is an additional option for an up-to-date JOSM. |
| | 138 | |
| | 139 | The tested version of [https://packages.debian.org/stable/josm JOSM] is available under **''main''** in section **''utils''**, but the version is usually quiet old. \\ |
| | 140 | Please, use the [https://backports.debian.org backports repository] to get a more up-to-date version, see [https://backports.debian.org/Instructions Instructions]. Still this version might be quiet old. |