Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in mintsources when clicking Add missing keys #199

Open
frostyturnip opened this issue Jan 27, 2020 · 2 comments
Open

Error in mintsources when clicking Add missing keys #199

frostyturnip opened this issue Jan 27, 2020 · 2 comments

Comments

@frostyturnip
Copy link

This happens on Mint 19.3 Cinnamon with a bare install and just fully updated. Open the Update Manager, navigate to Maintenance and click "Add missing keys". This generates the following in a box: "Error with your apt configuration, you may have to reload the cache first".

@xenopeek
Copy link

xenopeek commented Feb 1, 2020

To reproduce:

  • Fresh install without any added repositories;
  • Click the "Add missing keys" in Maintenance section of Software Sources;
  • Gives the message ""Error with your apt configuration, you may have to reload the cache first."

Clicking Refresh in Update Manager beforehand doesn't make a difference.

The cause looks to be the file /etc/apt/trusted.gpg doesn't exist until a repository is added to the system but the error handling code on "Add missing keys" checks for existence of the file /etc/apt/trusted.gpg, the directory /etc/apt/trusted.gpg.d/ and the directory /var/lib/apt/lists/ and if any of the three don't exist you get that message.

As that file /etc/apt/trusted.gpg doesn't exist by default, I think the error handling code should handle this differently and not have "Add missing keys" give an error.

@xenopeek xenopeek changed the title Maintenance error in Mint-Update when clicking Add missing keys Error in mintsources when clicking Add missing keys May 24, 2020
@BLaDZer
Copy link

BLaDZer commented Dec 22, 2022

Bug still present in fresh installed Linux Mint 21.1 (XFCE) :-(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants