0

solved: apt-transport-https must have been corrupted or some other similar issue. (i am not sure if this previous sentence actually had anything to do with the successful repair, but i did it, so i am documenting) then used apt-get purge remove apt-transport-https, and followed the checked answer to complete my repair of the issue.

original: I am running ubuntu 21.10 and apt-get update stopped working, here is the output:

sudo apt-get update
Hit:1 http://us.archive.ubuntu.com/ubuntu impish InRelease
Get:2 http://security.ubuntu.com/ubuntu impish-security InRelease [90.7 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu impish-updates InRelease [90.7 kB]
Hit:5 http://us.archive.ubuntu.com/ubuntu impish-backports InRelease           
Err:4 https://dl.bintray.com/etcher/debian stable InRelease
  403  Forbidden [IP: 52.42.128.10 443]
Reading package lists... Done                  
E: Failed to fetch https://deb.etcher.io/dists/stable/InRelease  403  Forbidden [IP: 52.42.128.10 443]
E: The repository 'https://deb.etcher.io stable InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Any ideas why this would have suddenly started happening? And how to repair it?

pgqog
  • 11

1 Answers1

2

The error message refers to the Balena Etcher PPA that has been deprecated.

Remove the old PPA amd add the new one according to the instructions linked above and reproduced here:

curl -1sLf \
'https://dl.cloudsmith.io/public/balena/etcher/setup.deb.sh' \
| sudo -E bash

If you have Balena Etcher already installed it'll will be upgrade alongside the other updates.

N0rbert
  • 99,918
ChanganAuto
  • 1,670
  • 8
  • 14
  • 21
  • i am sorry, i am not sure how to post or respond appropriately, let me know if there is a better way and how to correct... – pgqog Oct 17 '21 at 23:13
  • here is the beginning out my output from the suggested instructions: 'https://dl.cloudsmith.io/public/balena/etcher/setup.deb.sh'
    | sudo -E bash Executing the setup script for the 'balena/etcher' repository ...
    – pgqog Oct 17 '21 at 23:14
  • : ... distro=ubuntu version=21.10 codename=impish arch=x86_64
    :

    NOPE: Checking for apt dependency 'apt-transport-https' ... NOPE: Updating apt repository metadata cache ... Failed to update via apt-get update Hit:2 http://us.archive.ubuntu.com/ubuntu impish InRelease Get:3 http://security.ubuntu.com/ubuntu impish-security InRelease [90.7 kB] Get:4 http://us.archive.ubuntu.com/ubuntu impish-updates InRelease [90.7 kB] Err:1 https://dl.bintray.com/etcher/debian stable InRelease 403 Forbidden [IP: 34.209.144.48 443]

    – pgqog Oct 17 '21 at 23:15
  • E: Failed to fetch https://deb.etcher.io/dists/stable/InRelease 403 Forbidden [IP: 34.209.144.48 443] E: The repository 'https://deb.etcher.io stable InRelease' is not signed. ^^^^: ... Failed to update via apt-get update - Context above. !!!!: Oh no, your setup failed! :-( ... But we might be able to help. :-) !!!!: !!!!: You can contact balena for further assistance. !!!!: !!!!: URL: https://github.com/balena-io/etcher !!!!: – pgqog Oct 17 '21 at 23:15
  • It seems it hasn't been updated for 'impish' yet. It works fine for 20.04 and 21.04 though. You may want to remove the old PPA anyway (because the script couldn't). Open Software & Updates > Other software and you'll find it there. – ChanganAuto Oct 17 '21 at 23:19
  • your suggestion previously helped remove several error messages. the final one that was left said that apt-transport-https dependency was not working. it would not update and didnt register as existing (i think). first, i went to apt and removed balena-etcher.list, then i used: sudo apt-get --purge remove apt-transport-https and then followed with: sudo apt-get install apt-transport-https. That fixed the issue to where the rest of your advice fell into place, i ran the commands you gave, then ran the install per instructions on balena's git page. – pgqog Oct 17 '21 at 23:45
  • thank you for your help! – pgqog Oct 17 '21 at 23:45
  • You're welcome :) – ChanganAuto Oct 17 '21 at 23:47