I broke the repository links

Hello! I am a total newbie and I think I accidentally broke the repository links. I have no idea how to fix this problem. May someone give me guidance?


Update! Totally forgot to say what version I am running:
Ubuntu 20.04.3 LTS Focal Fossa

Welcome to the Ubuntu MATE Community. What makes you think the repository links are broken?

When I try to run "sudo apt update" or any other apt commands, it just tells me that I have a malformed entry in the sources.list file.

If you paste as a reply the contents of this file, I'll take a look and see if I see anything unusual.

#deb cdrom:[Debian GNU/Linux 2021.3 Kali-rolling - Official Snapshot amd64 LIV>

deb-src http:/ |/http.|kali.|org/kali kali-rolling main non-free contrib

This system was installed using small removable media

(e.g. netinst, live or single CD). The matching "deb cdrom"

entries were disabled at the end of the installation process.

For information about how to configure apt package sources,

see the sources.list(5) manual.

deb https://assets.checkra.in/debian/
deb https://assets.checkra.in/debian/

then states for me to read lines 14 which I believe refers to two lines with everything after deb https:.....

Could you tell us which OS you have installed ? Is that:

  1. Ubuntu-MATE
  2. Chakra-linux
  3. Kali-Linux

Also, wouldn't you agree that it is a pretty bad idea to mix repositories of these three operating systems ?

Also , the last two line

deb https://assets.checkra.in/debian/
deb https://assets.checkra.in/debian/

are missing arguments.
Would you be so kind to outcomment or delete these lines ?
(because these lines are the source of your problems)

Thank you! Here is what is in the sources.list file:



I'm no expert with wine, but it looks like you might have a release mismatch in lines 64 and 65. Line 65 is commented out so it shouldn't be affecting anything, but line 64 might be a problem.

64 deb Index of /wine-builds/ubuntu/dists/hirsute/main focal main
65 # deb-src Index of /wine-builds/ubuntu/dists/hirsute/main focal main

Notice that hirsute is release 21.04 and focal is 20.04.
To test it out you can try commenting out line 64 and see if that eliminates the error message.
To do that using a graphical text editor:

  1. Open the Terminal app from the menu. (Or press Ctrl+Alt+t on your keyboard.)
  2. Type the following command:
    sudo pluma /etc/apt/sources.list
    ("Sudo" tells the Pluma app to open the sources.list file as an administrator.)
  3. Enter your password when prompted. Pluma then opens the file.
  4. Add a "#" character at the beginning of line 64. It should now read:

64 # deb Index of /wine-builds/ubuntu/dists/hirsute/main focal main

  1. Save the file.

If that fixes the issue, you could remove the "#" and try changing the word "focal" to "hirsute" in line 64. As I mentioned, I'm no expert with Wine, but I don't think there should be a mismatch.

1 Like

I commented out line 62 and that seemed to fix it. There are a handful of programs that still seem to have issues, but that isn't relevant to this forum. thank you for your help