2

Kind of getting to a good stage of using Linux. I am having a problem with updating my Ubuntu 20.04. Every time I run sudo apt update I get "file failed to fetch" error messages. I have tried modifying the source.list file but no luck. Would appreciate some help.

Example

Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/focal/main/binary-arm64/Packages  404  Not Found [IP: 185.125.190.39 80]

Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/focal-backports/main/binary-arm64/Packages 404 Not Found [IP: 185.125.190.39 80]

Kenneth Shibaba
  • 163
  • 1
  • 1
  • 11

1 Answers1

4

All arm64 packages ONLY exist on the ports.ubuntu.com repositories. Your errors are because you are using the standard archives - which only carry i386 and amd64 architechtures - and will be breaking.

Based on your comment indicating your system architecture is x86_64, you need amd64 packages, and NOT arm64 packages. Why your system is searching for ARM64 packages is beyond me, so we're going to fix that. So let's fix that problem first, because you shouldn't need arm64 packages on a standard install.

  1. Remove arm64 from foreign architectures that dpkg/apt looks for.

    sudo dpkg --remove-architecture arm64
    
  2. Reset your sources list back to previous.

    Use something like this:

    deb http://gb.archive.ubuntu.com/ubuntu focal main restricted universe multiverse
    #deb-src http://gb.archive.ubuntu.com/ubuntu focal main restricted universe multiverse
    deb http://gb.archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
    #deb-src http://gb.archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
    deb http://gb.archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
    #deb-src http://gb.archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
    deb http://gb.archive.ubuntu.com/ubuntu focal-security main restricted universe multiverse
    #deb-src http://gb.archive.ubuntu.com/ubuntu focal-security main restricted universe multiverse
    deb http://archive.canonical.com/ubuntu focal partner
    #deb-src http://archive.canonical.com/ubuntu focal partner
    

    (Note I commented out the deb-src lines, unless you're doing things like apt source calls or such you probably don't need them).

  3. Run sudo apt update again. You should see no more errors.

Thomas Ward
  • 78,878