fails to update

Asked by Edward Hoffman on 2017-07-02

developer2@superquantan:~$ ubuntu-support-status
Support status summary of 'superquantan':

You have 15 packages (0.3%) supported until April 2022 (5y)
You have 2366 packages (41.3%) supported until April 2021 (5y)
You have 58 packages (1.0%) supported until April 2019 (3y)

You have 2820 packages (49.2%) that can not/no-longer be downloaded
You have 473 packages (8.3%) that are unsupported

Run with --show-unsupported, --show-supported or --show-all to see more details
developer2@superquantan:~$ cat /etc/dpkg/dpkg.cfg.d/multiarch
cat: /etc/dpkg/dpkg.cfg.d/multiarch: No such file or directory
developer2@superquantan:~$ dpkg --print-foreign-architectures
i386
arm64
developer2@superquantan:~$ sudo grep -R roxy /etc/apt/*
[sudo] password for developer2:
developer2@superquantan:~$ grep roxy /etc/environment
developer2@superquantan:~$ echo $http_proxy

developer2@superquantan:~$ echo $ftp_proxy

developer2@superquantan:~$ grep roxy /etc/bash.bashrc
developer2@superquantan:~$ grep roxy ~/.bashrc
developer2@superquantan:~$ cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
developer2@superquantan:~$ sudo fuser -vvv /var/lib/dpkg/lock
developer2@superquantan:~$ sudo fuser -vvv /var/cache/apt/archives/lock
developer2@superquantan:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"
developer2@superquantan:~$ uname -a
Linux superquantan 4.4.0-72-generic #93-Ubuntu SMP Fri Mar 31 14:07:41 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
developer2@superquantan:~$ sudo rm /var/lib/apt/lists/lock
developer2@superquantan:~$ sudo rm /var/cache/apt/archives/lock
developer2@superquantan:~$
developer2@superquantan:~$ sudo rm /var/lib/dpkg/lock
developer2@superquantan:~$
developer2@superquantan:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
developer2@superquantan:~$
developer2@superquantan:~$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-baddeveloper2@superquantan:~$
developer2@superquantan:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
developer2@superquantan:~$
developer2@superquantan:~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
developer2@superquantan:~$
developer2@superquantan:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
developer2@superquantan:~$
developer2@superquantan:~$ sudo rm -rf /var/lib/dpkg/updates/*
developer2@superquantan:~$
developer2@superquantan:~$ sudo rm -rf /var/lib/apt/lists
developer2@superquantan:~$
developer2@superquantan:~$ sudo rm /var/cache/apt/*.bin
developer2@superquantan:~$ sudo mkdir /var/lib/apt/lists
developer2@superquantan:~$
developer2@superquantan:~$ sudo mkdir /var/lib/apt/lists/partial
developer2@superquantan:~$
developer2@superquantan:~$ LANG=C;sudo apt-get clean
developer2@superquantan:~$
developer2@superquantan:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
developer2@superquantan:~$
developer2@superquantan:~$ sudo dpkg --configure -a
developer2@superquantan:~$
developer2@superquantan:~$ sudo dpkg --clear-avail
developer2@superquantan:~$
developer2@superquantan:~$ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
developer2@superquantan:~$ LANG=C;sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
developer2@superquantan:~$
developer2@superquantan:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
developer2@superquantan:~$
developer2@superquantan:~$ LANG=C;sudo apt-get --fix-missing update -o APT::Cache-Limit=100000000
Get:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1201 kB]
Get:5 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [297 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu xenial/main i386 Packages [1196 kB]
Ign:7 http://us.archive.ubuntu.com/ubuntu xenial/main arm64 Packages
Get:8 http://us.archive.ubuntu.com/ubuntu xenial/main Translation-en [568 kB]
Get:9 http://security.ubuntu.com/ubuntu xenial-security/main i386 Packages [280 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 DEP-11 Metadata [733 kB]
Ign:11 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Get:12 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [127 kB]
Get:13 http://us.archive.ubuntu.com/ubuntu xenial/main DEP-11 64x64 Icons [409 kB]
Get:14 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [54.7 kB]
Get:15 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [45.7 kB]
Get:16 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [572 kB]
Ign:11 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Ign:11 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Get:17 http://us.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [552 kB]
Err:11 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
  404 Not Found [IP: 91.189.88.162 80]
Ign:18 http://us.archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
Get:19 http://us.archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [231 kB]
Get:20 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [298 kB]
Get:21 http://us.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [195 kB]
Ign:7 http://us.archive.ubuntu.com/ubuntu xenial/main arm64 Packages
Ign:18 http://us.archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
Ign:7 http://us.archive.ubuntu.com/ubuntu xenial/main arm64 Packages
Ign:18 http://us.archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
Err:7 http://us.archive.ubuntu.com/ubuntu xenial/main arm64 Packages
  404 Not Found [IP: 91.189.91.23 80]
Err:18 http://us.archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
  404 Not Found [IP: 91.189.91.23 80]
Fetched 7211 kB in 3s (1818 kB/s)
Reading package lists... Done
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-arm64/Packages 404 Not Found [IP: 91.189.91.23 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-arm64/Packages 404 Not Found [IP: 91.189.91.23 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/main/binary-arm64/Packages 404 Not Found [IP: 91.189.88.162 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
developer2@superquantan:~$
developer2@superquantan:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=100000000 && sudo apt-get dist-upgrade
Get:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1201 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu xenial/main i386 Packages [1196 kB]
Ign:6 http://us.archive.ubuntu.com/ubuntu xenial/main arm64 Packages
Get:7 http://us.archive.ubuntu.com/ubuntu xenial/main Translation-en [568 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 DEP-11 Metadata [733 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu xenial/main DEP-11 64x64 Icons [409 kB]
Get:10 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [297 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [572 kB]
Get:12 http://us.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [552 kB]
Ign:13 http://us.archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
Get:14 http://us.archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [231 kB]
Get:15 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [298 kB]
Get:16 http://us.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [195 kB]
Ign:6 http://us.archive.ubuntu.com/ubuntu xenial/main arm64 Packages
Ign:13 http://us.archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
Get:17 http://security.ubuntu.com/ubuntu xenial-security/main i386 Packages [280 kB]
Ign:18 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Get:19 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [127 kB]
Get:20 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [54.7 kB]
Get:21 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [45.7 kB]
Ign:6 http://us.archive.ubuntu.com/ubuntu xenial/main arm64 Packages
Ign:18 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Ign:13 http://us.archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
Err:6 http://us.archive.ubuntu.com/ubuntu xenial/main arm64 Packages
  404 Not Found [IP: 91.189.91.23 80]
Ign:18 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Err:13 http://us.archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
  404 Not Found [IP: 91.189.91.23 80]
Err:18 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
  404 Not Found [IP: 91.189.88.149 80]
Fetched 451 kB in 1s (235 kB/s)
Reading package lists... Done
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-arm64/Packages 404 Not Found [IP: 91.189.91.23 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-arm64/Packages 404 Not Found [IP: 91.189.91.23 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/main/binary-arm64/Packages 404 Not Found [IP: 91.189.88.149 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
developer2@superquantan:~$
developer2@superquantan:~$ find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

/etc/apt/sources.list

     1 deb http://us.archive.ubuntu.com/ubuntu/ xenial main
     2 deb http://security.ubuntu.com/ubuntu/ xenial-security main
     3 deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main

/etc/apt/sources.list.d/webupd8team-y-ppa-manager-trusty.list

/etc/apt/sources.list.d/graphics-drivers-ubuntu-ppa-xenial.list

     1 # deb http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial main
     3 # deb-src http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial main

/etc/apt/sources.list.d/libopencv4tegra-repo.list

     1 # deb file:///var/libopencv4tegra-repo /

/etc/apt/sources.list.d/ondrej-ubuntu-php-xenial.list

     1 # deb http://ppa.launchpad.net/ondrej/php/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/ondrej/php/ubuntu xenial main

/etc/apt/sources.list.d/getdeb.list

/etc/apt/sources.list.d/google-webdesigner.list

     1 ### THIS FILE IS AUTOMATICALLY CONFIGURED ###
     2 # You may comment out this entry, but any other modifications may be lost.
     3 # deb [arch=amd64] http://dl.google.com/linux/webdesigner/deb/ stable main

/etc/apt/sources.list.d/google-earth.list

     1 ### THIS FILE IS AUTOMATICALLY CONFIGURED ###
     2 # You may comment out this entry, but any other modifications may be lost.
     3 # deb http://dl.google.com/linux/earth/deb/ stable main

/etc/apt/sources.list.d/ondrej-php-trusty.list

/etc/apt/sources.list.d/bazel.list

     1 # deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8

/etc/apt/sources.list.d/visionworks-sfm-repo.list

     1 # deb-src file:///var/visionworks-sfm-repo /
     2 # deb file:///var/visionworks-sfm-repo /

/etc/apt/sources.list.d/webkit-team-ppa-trusty.list

/etc/apt/sources.list.d/nv-gie-ga-cuda8.0-trt2.1-20170614.list

     1 # deb file:///var/nv-gie-repo-ga-cuda8.0-trt2.1-20170614 /

/etc/apt/sources.list.d/google-chrome.list

     1 ### THIS FILE IS AUTOMATICALLY CONFIGURED ###
     2 # You may comment out this entry, but any other modifications may be lost.
     3 # deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

/etc/apt/sources.list.d/ubuntuhandbook1-ubuntu-sigil-xenial.list

     1 # deb http://ppa.launchpad.net/ubuntuhandbook1/sigil/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/ubuntuhandbook1/sigil/ubuntu xenial main

/etc/apt/sources.list.d/visionworks-repo.list

     1 # deb-src file:///var/visionworks-repo /
     2 # deb file:///var/visionworks-repo /

/etc/apt/sources.list.d/visionworks-tracking-repo.list

     1 # deb-src file:///var/visionworks-tracking-repo /
     2 # deb file:///var/visionworks-tracking-repo /

/etc/apt/sources.list.d/xenial-partner.list

     1 # channel for the xenial (16.04) partner channel
     2 #
     3 #:description:This channel contains the partner software for xenial
     4 # deb http://archive.canonical.com/ubuntu xenial partner

/etc/apt/sources.list.d/i2p_packages-ubuntu-i2p-xenial.list

     1 # deb http://ppa.launchpad.net/i2p.packages/i2p/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/i2p.packages/i2p/ubuntu xenial main

/etc/apt/sources.list.d/jenkins.list

/etc/apt/sources.list.d/cuda-8-0-local.list

     1 # deb file:///var/cuda-repo-8-0-local /

/etc/apt/sources.list.d/fixnix-indicator-systemtray-unity-trusty.list

developer2@superquantan:~$ sudo dpkg --audit
developer2@superquantan:~$

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Last query:
2017-07-02
Last reply:
2017-07-02

Use software centre to switch to the main repository. May help.

Or it may have been worked on or updating. Is it the same now?

Manfred Hampl (m-hampl) said : #3

The root cause of your problem is the following:
The "standard" repository servers [countrycode.]archive.ubuntu.com only have the binary packages for amd64 and i386 architecture.
The binaries for all other architectures (like arm64) are available only on ports.ubuntu.com

You are looking for amd64, i386 and arm64 architecture binaries. Your hardware seems to be amd64 architecture (which can also execute binaries in i386 architecture, but not those for arm64). The question is: Do you really need the arm64 binaries? Do you attempt to do cross-compiling or something similar?

Possible solutions:
1. remove arm64 from dpkg's foreign-architectures list
or
2. reorganize your sources.list files, that they have entries similar to
deb [arch=amd64,i386] http://us.archive.ubuntu.com/ubuntu/ xenial main
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports xenial main

Can you help with this problem?

Provide an answer of your own, or ask Edward Hoffman for more information if necessary.

To post a message you must log in.