Announcement

Collapse
No announcement yet.

apt missing public key

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    apt missing public key

    $ sudo apt update && sudo apt dist-upgrade
    [sudo] password for jon:
    Failed to start apt-news.service: Unit apt-news.service not found.
    Failed to start esm-cache.service: Unit esm-cache.service not found.
    Get:1 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB]
    Hit:2 http://archive.ubuntu.com/ubuntu noble InRelease
    ​...
    Err:7 http://repository.spotify.com stable InRelease
    The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C85668DF69375001
    Get:18 https://packages.mozilla.org/apt mozilla/main all Packages [4 814 kB]
    Get:19 https://packages.mozilla.org/apt mozilla/main amd64 Packages [86,1 kB]
    Fetched 5 877 kB in 3s (1 786 kB/s)

    ...

    W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used.
    GPG error: http://repository.spotify.com stable InRelease: The following signatures couldn't be verified because the public key
    is not available: NO_PUBKEY C85668DF69375001
    W: Failed to fetch http://repository.spotify.com/dists/stable/InRelease The following signatures couldn't be verified because t
    he public key is not available: NO_PUBKEY C85668DF69375001
    W: Some index files failed to download. They have been ignored, or old ones used instead.


    It looks like there are three errors in here:

    (1) something to do with apt-news, whatever that may be

    (2) a problem with the mozilla public key?

    (3) a problem with the spotify public key?

    How do I fix them?. I've found answers for similar errors, but not these specifically.

    Thanks in advance.
    'I must have a prodigious quantity of mind; it takes me as much as a week sometimes to make it up.' Mark Twain

    #2
    (1) is a nothing burger, but easily fixed. neon, like others, disable the ubuntu-pro stuff, which also causes these messages. For some reason neon and some other distros don't bother turning these off.
    Code:
    $ sudo systemctl mask apt-news.service
    $ sudo systemctl mask esm-cache.service​

    (3) yes, you will want to check if there have been changes with them, it won't be anything specific to neon, but all apt based distros, or you just need to use the quite common fix for the NO_PUBKEY​ error.
    But I'd look over at Spotify first, as sometimes keys to expire or change, or similar issues crop up.


    (2) There are no errors with the mozilla key based on your output.

    Comment


      #3
      Originally posted by claydoh View Post
      (1) is a nothing burger, but easily fixed. neon, like others, disable the ubuntu-pro stuff, which also causes these messages. For some reason neon and some other distros don't bother turning these off.
      Code:
      $ sudo systemctl mask apt-news.service
      $ sudo systemctl mask esm-cache.service​
      I did that, but still get the messages. Do I have to reboot first?

      'I must have a prodigious quantity of mind; it takes me as much as a week sometimes to make it up.' Mark Twain

      Comment


        #4
        Probably, since the services are probably still running.
        I can't recall if I had to reboot to see the changes, but I definitely don't see them here,

        Comment

        Working...
        X