'apt search` cannot find packaged not already installed; 'sudo apt install' cannot install new packages

Asked by Haoyang Wang

'apt search` cannot find packaged not already installed. 'sudo apt install' cannot install new packages. For example, I tried to install 'qt5-default', and got:

haoyang@USD699:~$ apt search qt5-default
Sorting... Done
Full Text Search... Done
haoyang@USD699:~$ sudo apt install qt5-default
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package qt5-default

Thank you!

Here is my diagnostic outputs on Terminal:

haoyang@USD699:~$ ubuntu-support-status
Support status summary of 'USD699':

You have 2109 packages (97.7%) that can not/no-longer be downloaded
You have 50 packages (2.3%) that are unsupported

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

haoyang@USD699:~$ echo $ftp_proxy

haoyang@USD699:~$ grep roxy /etc/bash.bashrc
haoyang@USD699:~$ grep roxy ~/.bashrc
haoyang@USD699:~$ cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
haoyang@USD699:~$ sudo fuser -vvv /var/lib/dpkg/lock
haoyang@USD699:~$ sudo fuser -vvv /var/cache/apt/archives/lock
Specified filename /var/cache/apt/archives/lock does not exist.
haoyang@USD699:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"
haoyang@USD699:~$ uname -a
Linux USD699 4.4.0-77-generic #98-Ubuntu SMP Wed Apr 26 08:34:02 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
haoyang@USD699:~$ sudo rm /var/lib/apt/lists/lock
haoyang@USD699:~$ sudo rm /var/cache/apt/archives/lock
rm: cannot remove '/var/cache/apt/archives/lock': No such file or directory
haoyang@USD699:~$ sudo rm /var/lib/dpkg/lock
haoyang@USD699:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
haoyang@USD699:~$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
haoyang@USD699:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
haoyang@USD699:~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
haoyang@USD699:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
cp: cannot stat '/var/lib/dpkg/available-old': No such file or directory
haoyang@USD699:~$ sudo rm -rf /var/lib/dpkg/updates/*
haoyang@USD699:~$ sudo rm -rf /var/lib/apt/lists
haoyang@USD699:~$ sudo rm /var/cache/apt/*.bin
haoyang@USD699:~$ sudo mkdir /var/lib/apt/lists
haoyang@USD699:~$ sudo mkdir /var/lib/apt/lists/partial
haoyang@USD699:~$ LANG=C;sudo apt-get clean
haoyang@USD699:~$ LANG=C;sudo apt-get autoclean
haoyang@USD699:~$ sudo dpkg --configure -a
haoyang@USD699:~$ sudo dpkg --clear-avail
haoyang@USD699:~$ 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.
haoyang@USD699:~$ 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.
haoyang@USD699:~$ 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.
haoyang@USD699:~$ LANG=C;sudo apt-get --fix-missing update -o APT::Cache-Limit=100000000
Get:1 file:/var/cuda-repo-8-0-local InRelease
Ign:1 file:/var/cuda-repo-8-0-local InRelease
Get:2 file:/var/visionworks-repo InRelease
Ign:2 file:/var/visionworks-repo InRelease
Get:3 file:/var/visionworks-sfm-repo InRelease
Ign:3 file:/var/visionworks-sfm-repo InRelease
Get:4 file:/var/visionworks-tracking-repo InRelease
Ign:4 file:/var/visionworks-tracking-repo InRelease
Get:5 file:/var/cuda-repo-8-0-local Release [574 B]
Get:6 file:/var/visionworks-repo Release [1999 B]
Get:7 file:/var/visionworks-sfm-repo Release [2003 B]
Get:8 file:/var/visionworks-tracking-repo Release [2008 B]
Get:5 file:/var/cuda-repo-8-0-local Release [574 B]
Get:6 file:/var/visionworks-repo Release [1999 B]
Get:9 file:/var/cuda-repo-8-0-local Release.gpg [819 B]
Get:10 file:/var/visionworks-repo Release.gpg [819 B]
Get:7 file:/var/visionworks-sfm-repo Release [2003 B]
Get:8 file:/var/visionworks-tracking-repo Release [2008 B]
Get:11 file:/var/visionworks-sfm-repo Release.gpg [819 B]
Get:9 file:/var/cuda-repo-8-0-local Release.gpg [819 B]
Get:12 file:/var/visionworks-tracking-repo Release.gpg [819 B]
Get:10 file:/var/visionworks-repo Release.gpg [819 B]
Get:11 file:/var/visionworks-sfm-repo Release.gpg [819 B]
Get:12 file:/var/visionworks-tracking-repo Release.gpg [819 B]
Ign:13 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 InRelease
Get:14 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 Release [564 B]
Get:15 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 Release.gpg [801 B]
Get:16 file:/var/cuda-repo-8-0-local Packages [20.8 kB]
Get:17 file:/var/visionworks-repo Packages [1407 B]
Get:18 file:/var/visionworks-sfm-repo Packages [1054 B]
Get:19 file:/var/visionworks-tracking-repo Packages [1056 B]
Get:20 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 Packages [78.7 kB]
Get:21 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:22 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:23 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:24 http://archive.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:25 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1201 kB]
Get:26 http://archive.ubuntu.com/ubuntu xenial/main i386 Packages [1196 kB]
Ign:27 http://archive.ubuntu.com/ubuntu xenial/main arm64 Packages
Get:28 http://archive.ubuntu.com/ubuntu xenial/main Translation-en [568 kB]
Get:29 http://archive.ubuntu.com/ubuntu xenial/main amd64 DEP-11 Metadata [733 kB]
Get:30 http://archive.ubuntu.com/ubuntu xenial/main DEP-11 64x64 Icons [409 kB]
Get:31 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [8344 B]
Get:32 http://archive.ubuntu.com/ubuntu xenial/restricted i386 Packages [8684 B]
Get:33 http://archive.ubuntu.com/ubuntu xenial/restricted Translation-en [2908 B]
Get:34 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 DEP-11 Metadata [186 B]
Get:35 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [7532 kB]
Get:36 http://archive.ubuntu.com/ubuntu xenial/universe i386 Packages [7512 kB]
Ign:37 http://archive.ubuntu.com/ubuntu xenial/universe arm64 Packages
Get:38 http://archive.ubuntu.com/ubuntu xenial/universe Translation-en [4354 kB]
Get:39 http://archive.ubuntu.com/ubuntu xenial/universe amd64 DEP-11 Metadata [3410 kB]
Get:40 http://archive.ubuntu.com/ubuntu xenial/universe DEP-11 64x64 Icons [7448 kB]
Get:41 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [144 kB]
Get:42 http://archive.ubuntu.com/ubuntu xenial/multiverse i386 Packages [140 kB]
Ign:43 http://archive.ubuntu.com/ubuntu xenial/multiverse arm64 Packages
Get:44 http://archive.ubuntu.com/ubuntu xenial/multiverse Translation-en [106 kB]
Get:45 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 DEP-11 Metadata [63.8 kB]
Get:46 http://archive.ubuntu.com/ubuntu xenial/multiverse DEP-11 64x64 Icons [230 kB]
Get:47 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [670 kB]
Get:48 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [632 kB]
Ign:49 http://archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
Get:50 http://archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [280 kB]
Get:51 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [307 kB]
Get:52 http://archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [213 kB]
Get:53 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [8072 B]
Get:54 http://archive.ubuntu.com/ubuntu xenial-updates/restricted i386 Packages [8100 B]
Get:55 http://archive.ubuntu.com/ubuntu xenial-updates/restricted Translation-en [2672 B]
Get:56 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 DEP-11 Metadata [157 B]
Get:57 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [561 kB]
Get:58 http://archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [529 kB]
Ign:59 http://archive.ubuntu.com/ubuntu xenial-updates/universe arm64 Packages
Get:60 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [227 kB]
Get:61 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [185 kB]
Get:62 http://archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [261 kB]
Get:63 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [16.2 kB]
Get:64 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse i386 Packages [15.3 kB]
Ign:65 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse arm64 Packages
Get:66 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en [7996 B]
Get:67 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [5888 B]
Get:68 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse DEP-11 64x64 Icons [14.3 kB]
Get:69 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [4860 B]
Get:70 http://archive.ubuntu.com/ubuntu xenial-backports/main i386 Packages [4856 B]
Ign:71 http://archive.ubuntu.com/ubuntu xenial-backports/main arm64 Packages
Get:72 http://archive.ubuntu.com/ubuntu xenial-backports/main Translation-en [3220 B]
Get:73 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3328 B]
Get:74 http://archive.ubuntu.com/ubuntu xenial-backports/main DEP-11 64x64 Icons [29 B]
Get:75 http://archive.ubuntu.com/ubuntu xenial-backports/restricted amd64 DEP-11 Metadata [194 B]
Get:76 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [6624 B]
Get:77 http://archive.ubuntu.com/ubuntu xenial-backports/universe i386 Packages [6604 B]
Ign:78 http://archive.ubuntu.com/ubuntu xenial-backports/universe arm64 Packages
Get:79 http://archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en [3768 B]
Get:80 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [4676 B]
Get:81 http://archive.ubuntu.com/ubuntu xenial-backports/universe DEP-11 64x64 Icons [2717 B]
Get:82 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse amd64 DEP-11 Metadata [216 B]
Get:83 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse DEP-11 64x64 Icons [29 B]
Get:84 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 Packages [397 kB]
Get:85 http://archive.ubuntu.com/ubuntu xenial-security/main i386 Packages [365 kB]
Ign:86 http://archive.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Get:87 http://archive.ubuntu.com/ubuntu xenial-security/main Translation-en [175 kB]
Get:88 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [62.4 kB]
Get:89 http://archive.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [62.6 kB]
Get:90 http://archive.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [7472 B]
Get:91 http://archive.ubuntu.com/ubuntu xenial-security/restricted i386 Packages [7472 B]
Get:92 http://archive.ubuntu.com/ubuntu xenial-security/restricted Translation-en [2412 B]
Get:93 http://archive.ubuntu.com/ubuntu xenial-security/restricted amd64 DEP-11 Metadata [200 B]
Get:94 http://archive.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [183 kB]
Get:95 http://archive.ubuntu.com/ubuntu xenial-security/universe i386 Packages [157 kB]
Ign:96 http://archive.ubuntu.com/ubuntu xenial-security/universe arm64 Packages
Get:97 http://archive.ubuntu.com/ubuntu xenial-security/universe Translation-en [96.5 kB]
Get:98 http://archive.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [51.4 kB]
Get:99 http://archive.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [80.2 kB]
Get:100 http://archive.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [3212 B]
Get:101 http://archive.ubuntu.com/ubuntu xenial-security/multiverse i386 Packages [3384 B]
Get:102 http://archive.ubuntu.com/ubuntu xenial-security/multiverse Translation-en [1336 B]
Get:103 http://archive.ubuntu.com/ubuntu xenial-security/multiverse amd64 DEP-11 Metadata [212 B]
Get:104 http://archive.ubuntu.com/ubuntu xenial-security/multiverse DEP-11 64x64 Icons [29 B]
Ign:27 http://archive.ubuntu.com/ubuntu xenial/main arm64 Packages
Ign:37 http://archive.ubuntu.com/ubuntu xenial/universe arm64 Packages
Ign:43 http://archive.ubuntu.com/ubuntu xenial/multiverse arm64 Packages
Ign:49 http://archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
Ign:59 http://archive.ubuntu.com/ubuntu xenial-updates/universe arm64 Packages
Ign:65 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse arm64 Packages
Ign:71 http://archive.ubuntu.com/ubuntu xenial-backports/main arm64 Packages
Ign:78 http://archive.ubuntu.com/ubuntu xenial-backports/universe arm64 Packages
Ign:86 http://archive.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Ign:96 http://archive.ubuntu.com/ubuntu xenial-security/universe arm64 Packages
Ign:27 http://archive.ubuntu.com/ubuntu xenial/main arm64 Packages
Ign:37 http://archive.ubuntu.com/ubuntu xenial/universe arm64 Packages
Ign:43 http://archive.ubuntu.com/ubuntu xenial/multiverse arm64 Packages
Ign:49 http://archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
Ign:59 http://archive.ubuntu.com/ubuntu xenial-updates/universe arm64 Packages
Ign:65 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse arm64 Packages
Ign:71 http://archive.ubuntu.com/ubuntu xenial-backports/main arm64 Packages
Ign:78 http://archive.ubuntu.com/ubuntu xenial-backports/universe arm64 Packages
Ign:86 http://archive.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Ign:96 http://archive.ubuntu.com/ubuntu xenial-security/universe arm64 Packages
Err:27 http://archive.ubuntu.com/ubuntu xenial/main arm64 Packages
  404 Not Found [IP: 91.189.88.152 80]
Ign:37 http://archive.ubuntu.com/ubuntu xenial/universe arm64 Packages
Ign:43 http://archive.ubuntu.com/ubuntu xenial/multiverse arm64 Packages
Err:49 http://archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
  404 Not Found [IP: 91.189.88.152 80]
Ign:59 http://archive.ubuntu.com/ubuntu xenial-updates/universe arm64 Packages
Ign:65 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse arm64 Packages
Err:71 http://archive.ubuntu.com/ubuntu xenial-backports/main arm64 Packages
  404 Not Found [IP: 91.189.88.152 80]
Ign:78 http://archive.ubuntu.com/ubuntu xenial-backports/universe arm64 Packages
Err:86 http://archive.ubuntu.com/ubuntu xenial-security/main arm64 Packages
  404 Not Found [IP: 91.189.88.152 80]
Ign:96 http://archive.ubuntu.com/ubuntu xenial-security/universe arm64 Packages
Fetched 41.3 MB in 10s (4005 kB/s)
Reading package lists... Done
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/main/binary-arm64/Packages 404 Not Found [IP: 91.189.88.152 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-arm64/Packages 404 Not Found [IP: 91.189.88.152 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-arm64/Packages 404 Not Found [IP: 91.189.88.152 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-security/main/binary-arm64/Packages 404 Not Found [IP: 91.189.88.152 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
haoyang@USD699:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=100000000 && sudo apt-get dist-upgrade
Get:1 file:/var/cuda-repo-8-0-local InRelease
Ign:1 file:/var/cuda-repo-8-0-local InRelease
Get:2 file:/var/visionworks-repo InRelease
Ign:2 file:/var/visionworks-repo InRelease
Get:3 file:/var/visionworks-sfm-repo InRelease
Ign:3 file:/var/visionworks-sfm-repo InRelease
Get:4 file:/var/visionworks-tracking-repo InRelease
Ign:4 file:/var/visionworks-tracking-repo InRelease
Get:5 file:/var/cuda-repo-8-0-local Release [574 B]
Get:6 file:/var/visionworks-repo Release [1999 B]
Get:7 file:/var/visionworks-sfm-repo Release [2003 B]
Get:5 file:/var/cuda-repo-8-0-local Release [574 B]
Get:8 file:/var/visionworks-tracking-repo Release [2008 B]
Get:6 file:/var/visionworks-repo Release [1999 B]
Get:7 file:/var/visionworks-sfm-repo Release [2003 B]
Get:8 file:/var/visionworks-tracking-repo Release [2008 B]
Ign:9 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 InRelease
Hit:10 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 Release
Get:14 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:17 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:18 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:19 http://archive.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:20 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1201 kB]
Get:21 http://archive.ubuntu.com/ubuntu xenial/main i386 Packages [1196 kB]
Ign:22 http://archive.ubuntu.com/ubuntu xenial/main arm64 Packages
Get:23 http://archive.ubuntu.com/ubuntu xenial/main Translation-en [568 kB]
Get:24 http://archive.ubuntu.com/ubuntu xenial/main amd64 DEP-11 Metadata [733 kB]
Get:25 http://archive.ubuntu.com/ubuntu xenial/main DEP-11 64x64 Icons [409 kB]
Get:26 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [8344 B]
Get:27 http://archive.ubuntu.com/ubuntu xenial/restricted i386 Packages [8684 B]
Get:28 http://archive.ubuntu.com/ubuntu xenial/restricted Translation-en [2908 B]
Get:29 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 DEP-11 Metadata [186 B]
Get:30 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [7532 kB]
Get:31 http://archive.ubuntu.com/ubuntu xenial/universe i386 Packages [7512 kB]
Ign:32 http://archive.ubuntu.com/ubuntu xenial/universe arm64 Packages
Get:33 http://archive.ubuntu.com/ubuntu xenial/universe Translation-en [4354 kB]
Get:34 http://archive.ubuntu.com/ubuntu xenial/universe amd64 DEP-11 Metadata [3410 kB]
Get:35 http://archive.ubuntu.com/ubuntu xenial/universe DEP-11 64x64 Icons [7448 kB]
Get:36 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [144 kB]
Get:37 http://archive.ubuntu.com/ubuntu xenial/multiverse i386 Packages [140 kB]
Ign:38 http://archive.ubuntu.com/ubuntu xenial/multiverse arm64 Packages
Get:39 http://archive.ubuntu.com/ubuntu xenial/multiverse Translation-en [106 kB]
Get:40 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 DEP-11 Metadata [63.8 kB]
Get:41 http://archive.ubuntu.com/ubuntu xenial/multiverse DEP-11 64x64 Icons [230 kB]
Get:42 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [670 kB]
Get:43 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [632 kB]
Ign:44 http://archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
Get:45 http://archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [280 kB]
Get:46 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [307 kB]
Get:47 http://archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [213 kB]
Get:48 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [8072 B]
Get:49 http://archive.ubuntu.com/ubuntu xenial-updates/restricted i386 Packages [8100 B]
Get:50 http://archive.ubuntu.com/ubuntu xenial-updates/restricted Translation-en [2672 B]
Get:51 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 DEP-11 Metadata [157 B]
Get:52 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [561 kB]
Get:53 http://archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [529 kB]
Ign:54 http://archive.ubuntu.com/ubuntu xenial-updates/universe arm64 Packages
Get:55 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [227 kB]
Get:56 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [185 kB]
Get:57 http://archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [261 kB]
Get:58 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [16.2 kB]
Get:59 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse i386 Packages [15.3 kB]
Ign:60 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse arm64 Packages
Get:61 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en [7996 B]
Get:62 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [5888 B]
Get:63 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse DEP-11 64x64 Icons [14.3 kB]
Get:64 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [4860 B]
Get:65 http://archive.ubuntu.com/ubuntu xenial-backports/main i386 Packages [4856 B]
Ign:66 http://archive.ubuntu.com/ubuntu xenial-backports/main arm64 Packages
Get:67 http://archive.ubuntu.com/ubuntu xenial-backports/main Translation-en [3220 B]
Get:68 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3328 B]
Get:69 http://archive.ubuntu.com/ubuntu xenial-backports/main DEP-11 64x64 Icons [29 B]
Get:70 http://archive.ubuntu.com/ubuntu xenial-backports/restricted amd64 DEP-11 Metadata [194 B]
Get:71 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [6624 B]
Get:72 http://archive.ubuntu.com/ubuntu xenial-backports/universe i386 Packages [6604 B]
Ign:73 http://archive.ubuntu.com/ubuntu xenial-backports/universe arm64 Packages
Get:74 http://archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en [3768 B]
Get:75 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [4676 B]
Get:76 http://archive.ubuntu.com/ubuntu xenial-backports/universe DEP-11 64x64 Icons [2717 B]
Get:77 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse amd64 DEP-11 Metadata [216 B]
Get:78 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse DEP-11 64x64 Icons [29 B]
Get:79 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 Packages [397 kB]
Get:80 http://archive.ubuntu.com/ubuntu xenial-security/main i386 Packages [365 kB]
Ign:81 http://archive.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Get:82 http://archive.ubuntu.com/ubuntu xenial-security/main Translation-en [175 kB]
Get:83 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [62.4 kB]
Get:84 http://archive.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [62.6 kB]
Get:85 http://archive.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [7472 B]
Get:86 http://archive.ubuntu.com/ubuntu xenial-security/restricted i386 Packages [7472 B]
Get:87 http://archive.ubuntu.com/ubuntu xenial-security/restricted Translation-en [2412 B]
Get:88 http://archive.ubuntu.com/ubuntu xenial-security/restricted amd64 DEP-11 Metadata [200 B]
Get:89 http://archive.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [183 kB]
Get:90 http://archive.ubuntu.com/ubuntu xenial-security/universe i386 Packages [157 kB]
Ign:91 http://archive.ubuntu.com/ubuntu xenial-security/universe arm64 Packages
Get:92 http://archive.ubuntu.com/ubuntu xenial-security/universe Translation-en [96.5 kB]
Get:93 http://archive.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [51.4 kB]
Get:94 http://archive.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [80.2 kB]
Get:95 http://archive.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [3212 B]
Get:96 http://archive.ubuntu.com/ubuntu xenial-security/multiverse i386 Packages [3384 B]
Get:97 http://archive.ubuntu.com/ubuntu xenial-security/multiverse Translation-en [1336 B]
Get:98 http://archive.ubuntu.com/ubuntu xenial-security/multiverse amd64 DEP-11 Metadata [212 B]
Get:99 http://archive.ubuntu.com/ubuntu xenial-security/multiverse DEP-11 64x64 Icons [29 B]
Ign:22 http://archive.ubuntu.com/ubuntu xenial/main arm64 Packages
Ign:32 http://archive.ubuntu.com/ubuntu xenial/universe arm64 Packages
Ign:38 http://archive.ubuntu.com/ubuntu xenial/multiverse arm64 Packages
Ign:44 http://archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
Ign:54 http://archive.ubuntu.com/ubuntu xenial-updates/universe arm64 Packages
Ign:60 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse arm64 Packages
Ign:66 http://archive.ubuntu.com/ubuntu xenial-backports/main arm64 Packages
Ign:73 http://archive.ubuntu.com/ubuntu xenial-backports/universe arm64 Packages
Ign:81 http://archive.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Ign:91 http://archive.ubuntu.com/ubuntu xenial-security/universe arm64 Packages
Ign:22 http://archive.ubuntu.com/ubuntu xenial/main arm64 Packages
Ign:32 http://archive.ubuntu.com/ubuntu xenial/universe arm64 Packages
Ign:38 http://archive.ubuntu.com/ubuntu xenial/multiverse arm64 Packages
Ign:44 http://archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
Ign:54 http://archive.ubuntu.com/ubuntu xenial-updates/universe arm64 Packages
Ign:60 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse arm64 Packages
Ign:66 http://archive.ubuntu.com/ubuntu xenial-backports/main arm64 Packages
Ign:73 http://archive.ubuntu.com/ubuntu xenial-backports/universe arm64 Packages
Ign:81 http://archive.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Ign:91 http://archive.ubuntu.com/ubuntu xenial-security/universe arm64 Packages
Err:22 http://archive.ubuntu.com/ubuntu xenial/main arm64 Packages
  404 Not Found [IP: 91.189.91.26 80]
Ign:32 http://archive.ubuntu.com/ubuntu xenial/universe arm64 Packages
Ign:38 http://archive.ubuntu.com/ubuntu xenial/multiverse arm64 Packages
Err:44 http://archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
  404 Not Found [IP: 91.189.91.26 80]
Ign:54 http://archive.ubuntu.com/ubuntu xenial-updates/universe arm64 Packages
Ign:60 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse arm64 Packages
Err:66 http://archive.ubuntu.com/ubuntu xenial-backports/main arm64 Packages
  404 Not Found [IP: 91.189.91.26 80]
Ign:73 http://archive.ubuntu.com/ubuntu xenial-backports/universe arm64 Packages
Err:81 http://archive.ubuntu.com/ubuntu xenial-security/main arm64 Packages
  404 Not Found [IP: 91.189.91.26 80]
Ign:91 http://archive.ubuntu.com/ubuntu xenial-security/universe arm64 Packages
Fetched 553 kB in 3s (141 kB/s)
Reading package lists... Done
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/main/binary-arm64/Packages 404 Not Found [IP: 91.189.91.26 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-arm64/Packages 404 Not Found [IP: 91.189.91.26 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-arm64/Packages 404 Not Found [IP: 91.189.91.26 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-security/main/binary-arm64/Packages 404 Not Found [IP: 91.189.91.26 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
haoyang@USD699:~$ find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

/etc/apt/sources.list

     1 # deb cdrom:[Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719)]/ xenial main restricted
     2
     3 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
     4 # newer versions of the distribution.
     5 deb http://archive.ubuntu.com/ubuntu xenial main restricted
     6 # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
     7
     8 ## Major bug fix updates produced after the final release of the
     9 ## distribution.
    10 deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted
    11 # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
    12
    13 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    14 ## team, and may not be under a free licence. Please satisfy yourself as to
    15 ## your rights to use the software. Also, please note that software in
    16 ## universe WILL NOT receive any review or updates from the Ubuntu security
    17 ## team.
    18 deb http://archive.ubuntu.com/ubuntu xenial universe
    19 # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial universe
    20 deb http://archive.ubuntu.com/ubuntu xenial-updates universe
    21 # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates universe
    22
    23 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    24 ## team, and may not be under a free licence. Please satisfy yourself as to
    25 ## your rights to use the software. Also, please note that software in
    26 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    27 ## security team.
    28 deb http://archive.ubuntu.com/ubuntu xenial multiverse
    29 # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial multiverse
    30 deb http://archive.ubuntu.com/ubuntu xenial-updates multiverse
    31 # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
    32
    33 ## N.B. software from this repository may not have been tested as
    34 ## extensively as that contained in the main release, although it includes
    35 ## newer versions of some applications which may provide useful features.
    36 ## Also, please note that software in backports WILL NOT receive any review
    37 ## or updates from the Ubuntu security team.
    38 deb http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
    39 # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
    40
    41 ## Uncomment the following two lines to add software from Canonical's
    42 ## 'partner' repository.
    43 ## This software is not part of Ubuntu, but is offered by Canonical and the
    44 ## respective vendors as a service to Ubuntu users.
    45 # deb http://archive.canonical.com/ubuntu xenial partner
    46 # deb-src http://archive.canonical.com/ubuntu xenial partner
    47
    48 deb http://archive.ubuntu.com/ubuntu xenial-security main restricted
    49 # deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
    50 deb http://archive.ubuntu.com/ubuntu xenial-security universe
    51 # deb-src http://security.ubuntu.com/ubuntu xenial-security universe
    52 deb http://archive.ubuntu.com/ubuntu xenial-security multiverse
    53 # deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse

/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/visionworks-repo.list

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

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

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

/etc/apt/sources.list.d/cuda.list

     1 deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 /

/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/libopencv4tegra-repo.list

     1 # deb file:///var/libopencv4tegra-repo /
haoyang@USD699:~$ sudo dpkg --audit
haoyang@USD699:~$

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of:

apt-cache policy qt5-default

Thanks

Revision history for this message
Haoyang Wang (wanghaoyang) said :
#2

haoyang@USD699:~$ apt-cache policy qt5-default
N: Unable to locate package qt5-default

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

According to:
https://packages.ubuntu.com/search?keywords=qt5-default&searchon=names&suite=xenial&section=all

It's in the universe repository. Use your GUI application installer and make sure this is enabled.

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#4

You have errors in the sources.list configuration files.

The binary packages for arm64 architecture are not available on the same repository servers as the i386 and amd64 packages, but only on the ports.ubuntu.com server.

Do you really need binaries for arm64 architecture?

If no, then you should remove arm64 as foreign architecture with the command
sudo dpkg --remove-architecture arm64

If you need that additional architecture (e.g. because of doing cross-compilation), you have to reorganize your sources.list files and separate the lines for i386 and amd64 from those for arm64, something like

deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu/ xenial main universe
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports xenial main universe

In any case you have to make sure that the command "sudo apt-get update" does not show any error message (like 404 Not found) any more.

Revision history for this message
Haoyang Wang (wanghaoyang) said :
#5

Yes, after adding the architecture notations (like [arch=amd64,i386]) in sources.list, sudo apt update now works without errors and the system is back functional again.

Thank you for your help in solving the problem so fast! Thanks again.

Revision history for this message
Haoyang Wang (wanghaoyang) said :
#6

Thanks Manfred Hampl, that solved my question.