Edit: Last night, I used the “Fix MergeList problems” option in the maintenance tab of software sources and at least for now, it seems to be working. So I probably wont need help with this anymore, hopefully.

Every hour or two, the Update Manager keeps giving me an error message saying that my APT configuration is corrupt and that I should switch to another Linux Mint mirror. It usually goes away when I do a manual refresh but it just keeps coming back. I have also tried switching to a different mirror but I get the same error. It also tells me to run apt-get update but even if I add “sudo” it just gives me an error message saying to run apt-get update.

It happened again so I’m adding screenshots in case they help. The first is the initial error, then it’s the error I get when I try to change the repository and the third is the error I get when I try running the command it suggested:

  • OhVenus_Baby@lemmy.ml
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    6 months ago

    I fixed this issue on mine and it took me a few tries, while I’m not currently on my PC you should be able to find some tab along the page you can change the mirrors and it says something like clear packages and there’s a few options on a small boxed list deal. Perhaps something like remove duplicate dependencies I really can’t remember the boxes so don’t quote me. You clear all of them that mention remove or clear. Change mirrors then Sudo update your APT then I switched back to the main Jammy is it? Worked for me. I could better help once I’m back to my computer. It happened to me a few weeks ago as well so my memory is hazy. If your still having trouble in 12 hours once I am able to get to my computer I will help you best I can.

    • vortexal@lemmy.mlOP
      link
      fedilink
      arrow-up
      2
      ·
      6 months ago

      I just saw your edit, the closest to “remove duplicate dependencies” is “remove duplicate entries”, is that it?

    • vortexal@lemmy.mlOP
      link
      fedilink
      arrow-up
      2
      ·
      6 months ago

      The closest thing I see to “clear packages” is “remove foreign packages”, is that it? For the mirror, am I supposed to change the Linux Mint mirror or the Ubuntu mirror? It’s telling me to change the Linux Mint mirror but you mentioned “Jammy”, so which one am I supposed to change?

      • OhVenus_Baby@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        6 months ago

        Yea that’s it. I couldn’t remember what the options were and I was going to sleep. I’m back online and if you give me a few minutes I can do my best to help. Clear all the options you can and try running sudo apt get update. Sometimes where there’s an input output error it can also be a hardware issue such as a bad block on the drive preventing anything from writing to that block. Go to disks. Find your main drive and repair it, then check it the option above repair. After those two repeat the remove dependencies and duplicate/foreign packages. Finally sudo update. See it that helps.

        • vortexal@lemmy.mlOP
          link
          fedilink
          arrow-up
          1
          ·
          6 months ago

          I might try that later if the issue comes back up. Last night, I used the “Fix MergeList problems” option in the maintenance tab of software sources and that seems to have fixed it. I did at the time think it was an issue with my HDD but disks wont let me check the filesystem because it can’t unmount a filesystem that is in use.

          • OhVenus_Baby@lemmy.ml
            link
            fedilink
            arrow-up
            3
            ·
            6 months ago

            Boot up from a USB drive that’s what I did. I was just about to add the merge list in the update manager as well. Keep me posted if it didn’t work. Best of luck.

  • gnuhaut@lemmy.ml
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    6 months ago

    Input/output error is very weird, maybe you got file corruption?

    Does dmesg show any errors with the disk or file system?

    If you run

    sudo strace -e t=read -e status=failed --decode-fds apt-get update
    

    you might be able to figure which file it is that cannot be read.

    • vortexal@lemmy.mlOP
      link
      fedilink
      arrow-up
      2
      ·
      6 months ago

      I’ll try that if the issue happens again because right now it seems to be working. Last night, I used the “Fix MergeList problems” option in the maintenance tab of software sources and that seems to have fixed it.

    • vortexal@lemmy.mlOP
      link
      fedilink
      arrow-up
      2
      ·
      6 months ago

      It seems to be working now, so I might not need to try that. Last night, I used the “Fix MergeList problems” option in the maintenance tab of software sources and that seems to have fixed the issue.

  • bloodfart@lemmy.ml
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    6 months ago

    Before you start trying to figure out which ram stick or ssd is bad, run “apt clean”. That clears the cache that it’s saying is all fucked up.

    • vortexal@lemmy.mlOP
      link
      fedilink
      arrow-up
      1
      ·
      6 months ago

      Right now it seems to be working fine, so I’ll try that later if I have issues again. Last night, I used the “Fix MergeList problems” option in the maintenance tab of software sources and that seems to have fixed it.