etcher icon indicating copy to clipboard operation
etcher copied to clipboard

apt update fails in Debian 12 due to use of deprecated apt-key

Open Kodar-le-dok opened this issue 4 years ago • 1 comments

  • Etcher version: 1.7.3
  • Operating system and architecture: Linux Debian 12 amd64
  • Image flashed: None
  • What do you think should have happened: The installation script should drop the use of apt-key (line 486 of the https://dl.cloudsmith.io/public/balena/etcher/setup.deb.sh official script), as recommended in https://www.linuxuprising.com/2021/01/apt-key-is-deprecated-how-to-add.html, for example.
  • What happened: sudo apt update fails on NO_PUBKEY 70528471AFF9A051
  • Do you see any meaningful error information in the DevTools? No

Kodar-le-dok avatar Mar 05 '22 12:03 Kodar-le-dok

My hack works as follow so far:

  • use the current script, still, so that the whole installation background gets installed;
  • download the key in the correct format at the correct place: wget -O- https://dl.cloudsmith.io/public/balena/etcher/gpg.70528471AFF9A051.key | gpg --dearmor | sudo tee /usr/share/keyrings/etcher-archive-keyring.gpg
  • open the source list file: sudo nano balena-etcher.list
  • update the links to the repos, with the signed-by option:
deb [signed-by=/usr/share/keyrings/etcher-archive-keyring.gpg] https://dl.cloudsmith.io/public/balena/etcher/deb/debian bullseye main
deb-src [signed-by=/usr/share/keyrings/etcher-archive-keyring.gpg] https://dl.cloudsmith.io/public/balena/etcher/deb/debian bullseye main

And that's it. But something more automated from the start would be much appreciated, especially when a script file is planned for that.

Kodar-le-dok avatar Mar 05 '22 12:03 Kodar-le-dok