[SOLVED] Repositories errors

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
jave
Level 4
Level 4
Posts: 227
Joined: Mon Dec 02, 2019 6:53 am

[SOLVED] Repositories errors

Post by jave »

Hi
Running LM21 Cinnamon 64bit.

Today I added the Google repositories in order to install Chrome. Now when I update anything from the Update Manager I get the following error:
Image

How do I fix this?
Last edited by LockBot on Sat Jun 10, 2023 10:00 pm, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
sleeper12
Level 21
Level 21
Posts: 14558
Joined: Thu May 25, 2017 3:22 pm

Re: Repositories errors

Post by sleeper12 »

Try: Software Sources, Maintenance, Remove duplicate entries.
User avatar
jave
Level 4
Level 4
Posts: 227
Joined: Mon Dec 02, 2019 6:53 am

Re: Repositories errors

Post by jave »

sleeper12 wrote: Wed Dec 07, 2022 11:31 pm Try: Software Sources, Maintenance, Remove duplicate entries.
Tried that. Still get the same errors.
User avatar
tonywhelan
Level 4
Level 4
Posts: 296
Joined: Sun Jun 10, 2012 10:47 pm
Location: Canberra, Australia

Re: Repositories errors

Post by tonywhelan »

jave wrote: Thu Dec 08, 2022 4:42 pm
sleeper12 wrote: Wed Dec 07, 2022 11:31 pm Try: Software Sources, Maintenance, Remove duplicate entries.
Tried that. Still get the same errors.
You could try backing up your file /etc/apt/sources.list.d/additional-repositories.list and then editing the original to remove chrome entries.
From a terminal:
sudo cp /etc/apt/sources.list.d/additional-repositories.list /etc/apt/sources.list.d/additional-repositories.list-BAK
sudo xed /etc/apt/sources.list.d/additional-repositories.list
(then remove the chrome entries and save the file and close xed)
sudo apt update

and see if that fixes it.

If you accidentally mess up the editing, just delete the file and rename the backup file to its original name.
Linux Mint 21 Cinnamon household.
If your issue is solved, please edit your first post in the topic, adding [SOLVED] to the title.
Image
sleeper12
Level 21
Level 21
Posts: 14558
Joined: Thu May 25, 2017 3:22 pm

Re: Repositories errors

Post by sleeper12 »

Agreed, since Software Sources seems to fail to remove the duplicated entries, they need to be removed manually either from additional-repositories or from google-chrome.
User avatar
jave
Level 4
Level 4
Posts: 227
Joined: Mon Dec 02, 2019 6:53 am

Re: Repositories errors

Post by jave »

Thanks. I tried editing the additional-repositories.list file, but discovered it only had one entry???

So I exited and deleted the original file, keeping the old additional-repositories.list.old file, and I'm assuming it won't get picked up and processed?

This is what I have so far:

Code: Select all

jave@ryzen9:/etc/apt/sources.list.d$ ls -al
total 20
drwxr-xr-x 2 root root 4096 Dec 12 08:37 .
drwxr-xr-x 8 root root 4096 Dec  9 07:37 ..
-rw-r--r-- 1 root root   55 Dec  8 09:14 additional-repositories.list.old
-rw-r--r-- 1 root root  190 Dec  8 09:15 google-chrome.list
-rw-r--r-- 1 root root  499 Dec  2 08:10 official-package-repositories.list
When I now run a refresh in Update Manager - no errors! I'm assuming Chrome will still get updated as the google-chrome.list file is still there.
User avatar
tonywhelan
Level 4
Level 4
Posts: 296
Joined: Sun Jun 10, 2012 10:47 pm
Location: Canberra, Australia

Re: Repositories errors

Post by tonywhelan »

jave wrote: Sun Dec 11, 2022 5:46 pm <snip>
When I now run a refresh in Update Manager - no errors! I'm assuming Chrome will still get updated as the google-chrome.list file is still there.
Chrome should update just fine. If you're satisfied with the outcome, can you add the word SOLVED to the title of the thread?
cheers.
Linux Mint 21 Cinnamon household.
If your issue is solved, please edit your first post in the topic, adding [SOLVED] to the title.
Image
Locked

Return to “Software & Applications”