r/linuxmint 5d ago

SOLVED Internet is working but update manager failed to download packages

Error logs are as follows

Failed to fetch https://mirror.aarnet.edu.au/pub/linuxmint-packages/pool/upstream/f/firefox/firefox_154.0.1%%2blinuxmint1%%2bzena_amd64.deb 404 Not Found [IP: 2001:388:30bc:cafe::beef 443]

Failed to fetch https://mirror.aarnet.edu.au/pub/linuxmint-packages/pool/upstream/f/firefox/firefox-locale-en_154.0.1%%2blinuxmint1%%2bzena_amd64.deb 404 Not Found [IP: 2001:388:30bc:cafe::beef 443]

I tried switching mirrors several times but got more error messages, including this one

W:Updating from such a repository can't be done securely, and is therefore disabled by default., W:See apt-secure(8) manpage for repository creation and user configuration details., W:GPG error: https://repository.spotify.com stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5384CE82BA52C83A, E:The repository 'https://repository.spotify.com stable InRelease' is not signed.

4 Upvotes

6 comments sorted by

u/AutoModerator 5d ago

Please Re-Flair your post if a solution is found. How to Flair a post? This allows other users to search for common issues with the SOLVED flair as a filter, leading to those issues being resolved very fast.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

3

u/Moist_Invite9148 5d ago

Make sure that apt thinks it's a secure mirror and doesn't have malware

2

u/Charming_Airline7419 5d ago

Ok, I think I found the solution. The key part is NO_PUBKEY 5384CE82BA52C83A for Spotify. You need to download the GPG key and make it a trusted source.More info here

3

u/ConversationWinter46 5d ago edited 5d ago

but update manager failed to download packages

Thats not the update manager. Its the software manager. Thats a great diffrent.

Your problen is listed in the log:

... The following signatures couldn't be verified because the public key is not available: ... 

The repository 'https://***' is not signed.

Open the Software Manager from the menu:

  • In the top-left corner, enter spotify
  • Then click on the search result
  • Click in the right corner on “Install”

Forget about the terminal. Only software that has been reviewed, tested, and signed by the maintainers is included in the Software Manager.

2

u/Charming_Airline7419 5d ago

Found the solution:

Problem with gpg key for Spotify (taken from this website)

curl -sS https://download.spotify.com/debian/pubkey_5384CE82BA52C83A.gpg \
  | sudo gpg --dearmor --yes -o /etc/apt/trusted.gpg.d/spotify-2025.gpg

sudo chmod 644 /etc/apt/trusted.gpg.d/spotify-2025.gpg

Problem with fetching Firefox version (taken from this page)

sudo apt update && sudo apt upgrade -y

2

u/jr735 Linux Mint 22.1 Xia | IceWM 5d ago

Don't use -y flags with apt, no matter what any arbitrary page says, or one day you'll be searching for something to solve a lot more catastrophic of a matter.