https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure

Asked by Subha Ray

Pasting as asked
=============
subha@subha-desktop:~$ ubuntu-support-status
Support status summary of 'subha-desktop':

You have 3 packages (0.2%) supported until July 2017 (9m)
You have 686 packages (41.1%) supported until October 2021 (5y)

You have 928 packages (55.6%) that can not/no-longer be downloaded
You have 52 packages (3.1%) that are unsupported

Your Hardware Enablement Stack (HWE) is supported until April 2019.

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

subha@subha-desktop:~$ echo $ftp_proxy

subha@subha-desktop:~$ grep proxy /etc/bash.bashrc
subha@subha-desktop:~$ grep proxy ~/.bashrc
subha@subha-desktop:~$ cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
subha@subha-desktop:~$ sudo fuser -vvv /var/lib/dpkg/lock
subha@subha-desktop:~$ sudo fuser -vvv /var/cache/apt/archives/lock
subha@subha-desktop:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"
subha@subha-desktop:~$ sudo rm /var/lib/apt/lists/lock
subha@subha-desktop:~$ sudo rm /var/cache/apt/archives/lock
subha@subha-desktop:~$ sudo rm /var/lib/dpkg/lock
subha@subha-desktop:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
subha@subha-desktop:~$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
subha@subha-desktop:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
subha@subha-desktop:~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
subha@subha-desktop:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
subha@subha-desktop:~$ sudo rm -rf /var/lib/dpkg/updates/*
subha@subha-desktop:~$ sudo rm -rf /var/lib/apt/lists
subha@subha-desktop:~$ sudo rm /var/cache/apt/*.bin
subha@subha-desktop:~$ sudo mkdir /var/lib/apt/lists
subha@subha-desktop:~$ sudo mkdir /var/lib/apt/lists/partial
subha@subha-desktop:~$ LANG=C;sudo apt-get clean
subha@subha-desktop:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
subha@subha-desktop:~$ sudo dpkg --configure -a
subha@subha-desktop:~$ sudo dpkg --clear-avail
subha@subha-desktop:~$ 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.
subha@subha-desktop:~$ 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.
subha@subha-desktop:~$ 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.
subha@subha-desktop:~$ LANG=C;sudo apt-get --fix-missing update -o APT::Cache-Limit=100000000
Ign cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803) trusty InRelease
Ign cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803) trusty Release.gpg
Ign cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803) trusty Release
Err cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803) trusty/main amd64 Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803) trusty/restricted amd64 Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803) trusty/main i386 Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803) trusty/restricted i386 Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Ign cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803) trusty/main Translation-en
Ign cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803) trusty/restricted Translation-en
Ign http://archive.ubuntu.com trusty InRelease
Ign http://linux.dropbox.com trusty InRelease
Get:1 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Ign http://archive.canonical.com trusty InRelease
Get:2 http://archive.ubuntu.com trusty-security InRelease [65.9 kB]
Get:3 http://archive.canonical.com trusty Release.gpg [933 B]
Get:4 http://archive.canonical.com trusty Release [9359 B]
Get:5 http://linux.dropbox.com trusty Release.gpg [473 B]
Ign http://archive.canonical.com trusty Release
Get:6 http://archive.canonical.com trusty/partner amd64 Packages [5612 B]
Get:7 http://archive.canonical.com trusty/partner i386 Packages [6289 B]
Get:8 http://archive.canonical.com trusty/partner Translation-en [4593 B]
Get:9 http://linux.dropbox.com trusty Release [6600 B]
Get:10 http://archive.ubuntu.com trusty Release.gpg [933 B]
Get:11 http://archive.ubuntu.com trusty-updates/main Sources [384 kB]
Get:12 http://linux.dropbox.com trusty/main amd64 Packages [1092 B]
Get:13 http://linux.dropbox.com trusty/main i386 Packages [1104 B]
Get:14 http://archive.ubuntu.com trusty-updates/restricted Sources [5360 B]
Get:15 http://archive.ubuntu.com trusty-updates/universe Sources [169 kB]
Ign http://linux.dropbox.com trusty/main Translation-en
Get:16 http://archive.ubuntu.com trusty-updates/multiverse Sources [7531 B]
Get:17 http://archive.ubuntu.com trusty-updates/main amd64 Packages [913 kB]
Get:18 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [15.9 kB]
Get:19 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [387 kB]
Get:20 http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages [15.0 kB]
Get:21 http://archive.ubuntu.com trusty-updates/main i386 Packages [872 kB]
Get:22 http://archive.ubuntu.com trusty-updates/restricted i386 Packages [15.6 kB]
Get:23 http://archive.ubuntu.com trusty-updates/universe i386 Packages [389 kB]
Get:24 http://archive.ubuntu.com trusty-updates/multiverse i386 Packages [15.5 kB]
Get:25 http://archive.ubuntu.com trusty-updates/main Translation-en [443 kB]
Get:26 http://archive.ubuntu.com trusty-updates/multiverse Translation-en [7931 B]
Get:27 http://archive.ubuntu.com trusty-updates/restricted Translation-en [3699 B]
Get:28 http://archive.ubuntu.com trusty-updates/universe Translation-en [205 kB]
Get:29 http://archive.ubuntu.com trusty-security/main Sources [120 kB]
Get:30 http://archive.ubuntu.com trusty-security/restricted Sources [4064 B]
Get:31 http://archive.ubuntu.com trusty-security/universe Sources [44.7 kB]
Get:32 http://archive.ubuntu.com trusty-security/multiverse Sources [3202 B]
Get:33 http://archive.ubuntu.com trusty-security/main amd64 Packages [542 kB]
Get:34 http://archive.ubuntu.com trusty-security/restricted amd64 Packages [13.0 kB]
Get:35 http://archive.ubuntu.com trusty-security/universe amd64 Packages [141 kB]
Get:36 http://archive.ubuntu.com trusty-security/multiverse amd64 Packages [5199 B]
Get:37 http://archive.ubuntu.com trusty-security/main i386 Packages [503 kB]
Get:38 http://archive.ubuntu.com trusty-security/restricted i386 Packages [12.7 kB]
Get:39 http://archive.ubuntu.com trusty-security/universe i386 Packages [141 kB]
Get:40 http://archive.ubuntu.com trusty-security/multiverse i386 Packages [5360 B]
Get:41 http://archive.ubuntu.com trusty-security/main Translation-en [298 kB]
Get:42 http://archive.ubuntu.com trusty-security/multiverse Translation-en [2848 B]
Get:43 http://archive.ubuntu.com trusty-security/restricted Translation-en [3206 B]
Get:44 http://archive.ubuntu.com trusty-security/universe Translation-en [84.3 kB]
Get:45 http://archive.ubuntu.com trusty Release [11.9 kB]
Ign http://archive.ubuntu.com trusty Release
Get:46 http://archive.ubuntu.com trusty/main Sources [14 B]
Get:47 http://archive.ubuntu.com trusty/restricted Sources [5433 B]
Get:48 http://archive.ubuntu.com trusty/universe Sources [6399 kB]
Get:49 http://archive.ubuntu.com trusty/multiverse Sources [174 kB]
Get:50 http://archive.ubuntu.com trusty/main amd64 Packages [14 B]
Get:51 http://archive.ubuntu.com trusty/restricted amd64 Packages [13.0 kB]
Get:52 http://archive.ubuntu.com trusty/universe amd64 Packages [5859 kB]
Get:53 http://archive.ubuntu.com trusty/multiverse amd64 Packages [132 kB]
Get:54 http://archive.ubuntu.com trusty/main i386 Packages [14 B]
Get:55 http://archive.ubuntu.com trusty/restricted i386 Packages [13.4 kB]
Get:56 http://archive.ubuntu.com trusty/universe i386 Packages [5866 kB]
Get:57 http://archive.ubuntu.com trusty/multiverse i386 Packages [134 kB]
Get:58 http://archive.ubuntu.com trusty/main Translation-en [762 kB]
Get:59 http://archive.ubuntu.com trusty/multiverse Translation-en [102 kB]
Get:60 http://archive.ubuntu.com trusty/restricted Translation-en [3457 B]
Get:61 http://archive.ubuntu.com trusty/universe Translation-en [4089 kB]
Fetched 29.5 MB in 1min 5s (451 kB/s)
W: GPG error: http://archive.canonical.com trusty Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <email address hidden>
W: GPG error: http://archive.ubuntu.com trusty Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <email address hidden>
W: Failed to fetch cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803)/dists/trusty/main/binary-amd64/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803)/dists/trusty/restricted/binary-amd64/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803)/dists/trusty/main/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803)/dists/trusty/restricted/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

E: Some index files failed to download. They have been ignored, or old ones used instead.
subha@subha-desktop:~$ LANG=C;sudo apt-get --fix-missing update -o APT::Cache-Limit=100000000
Ign cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803) trusty InRelease
Ign cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803) trusty Release.gpg
Ign cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803) trusty Release
Err cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803) trusty/main amd64 Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803) trusty/restricted amd64 Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803) trusty/main i386 Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803) trusty/restricted i386 Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Ign cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803) trusty/main Translation-en
Ign cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803) trusty/restricted Translation-en
Ign http://archive.canonical.com trusty InRelease
Get:1 http://archive.canonical.com trusty Release.gpg [933 B]
Ign http://archive.ubuntu.com trusty InRelease
Get:2 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Get:3 http://archive.canonical.com trusty Release [9359 B]
Ign http://archive.canonical.com trusty Release
Get:4 http://archive.ubuntu.com trusty-security InRelease [65.9 kB]
Ign http://linux.dropbox.com trusty InRelease
Ign http://archive.canonical.com trusty/partner amd64 Packages/DiffIndex
Hit http://linux.dropbox.com trusty Release.gpg
Get:5 http://archive.ubuntu.com trusty Release.gpg [933 B]
Ign http://archive.canonical.com trusty/partner i386 Packages/DiffIndex
Get:6 http://archive.canonical.com trusty/partner Translation-en [4593 B]
Get:7 http://archive.canonical.com trusty/partner amd64 Packages [5612 B]
Hit http://linux.dropbox.com trusty Release
Get:8 http://archive.canonical.com trusty/partner i386 Packages [6289 B]
Hit http://archive.ubuntu.com trusty-updates/main Sources
Get:9 http://archive.ubuntu.com trusty-updates/restricted Sources [5360 B]
Hit http://linux.dropbox.com trusty/main amd64 Packages
Hit http://archive.ubuntu.com trusty-updates/universe Sources
Get:10 http://archive.ubuntu.com trusty-updates/multiverse Sources [7531 B]
Hit http://linux.dropbox.com trusty/main i386 Packages
Hit http://archive.ubuntu.com trusty-updates/main amd64 Packages
Get:11 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [15.9 kB]
Hit http://archive.ubuntu.com trusty-updates/universe amd64 Packages
Get:12 http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages [15.0 kB]
Hit http://archive.ubuntu.com trusty-updates/main i386 Packages
Get:13 http://archive.ubuntu.com trusty-updates/restricted i386 Packages [15.6 kB]
Hit http://archive.ubuntu.com trusty-updates/universe i386 Packages
Get:14 http://archive.ubuntu.com trusty-updates/multiverse i386 Packages [15.5 kB]
Hit http://archive.ubuntu.com trusty-updates/main Translation-en
Hit http://archive.ubuntu.com trusty-updates/multiverse Translation-en
Hit http://archive.ubuntu.com trusty-updates/restricted Translation-en
Ign http://linux.dropbox.com trusty/main Translation-en
Hit http://archive.ubuntu.com trusty-updates/universe Translation-en
Get:15 http://archive.ubuntu.com trusty-security/main Sources [120 kB]
Get:16 http://archive.ubuntu.com trusty-security/restricted Sources [4064 B]
Get:17 http://archive.ubuntu.com trusty-security/universe Sources [44.7 kB]
Get:18 http://archive.ubuntu.com trusty-security/multiverse Sources [3202 B]
Hit http://archive.ubuntu.com trusty-security/main amd64 Packages
Get:19 http://archive.ubuntu.com trusty-security/restricted amd64 Packages [13.0 kB]
Hit http://archive.ubuntu.com trusty-security/universe amd64 Packages
Get:20 http://archive.ubuntu.com trusty-security/multiverse amd64 Packages [5199 B]
Hit http://archive.ubuntu.com trusty-security/main i386 Packages
Get:21 http://archive.ubuntu.com trusty-security/restricted i386 Packages [12.7 kB]
Hit http://archive.ubuntu.com trusty-security/universe i386 Packages
Get:22 http://archive.ubuntu.com trusty-security/multiverse i386 Packages [5360 B]
Hit http://archive.ubuntu.com trusty-security/main Translation-en
Hit http://archive.ubuntu.com trusty-security/multiverse Translation-en
Hit http://archive.ubuntu.com trusty-security/restricted Translation-en
Hit http://archive.ubuntu.com trusty-security/universe Translation-en
Get:23 http://archive.ubuntu.com trusty Release [58.5 kB]
Get:24 http://archive.ubuntu.com trusty/main Sources [14 B]
Get:25 http://archive.ubuntu.com trusty/restricted Sources [5433 B]
Get:26 http://archive.ubuntu.com trusty/universe Sources [6399 kB]
Get:27 http://archive.ubuntu.com trusty/multiverse Sources [174 kB]
Get:28 http://archive.ubuntu.com trusty/main amd64 Packages [14 B]
Get:29 http://archive.ubuntu.com trusty/restricted amd64 Packages [13.0 kB]
Get:30 http://archive.ubuntu.com trusty/universe amd64 Packages [5859 kB]
Get:31 http://archive.ubuntu.com trusty/multiverse amd64 Packages [132 kB]
Get:32 http://archive.ubuntu.com trusty/main i386 Packages [14 B]
Get:33 http://archive.ubuntu.com trusty/restricted i386 Packages [13.4 kB]
Get:34 http://archive.ubuntu.com trusty/universe i386 Packages [5866 kB]
Get:35 http://archive.ubuntu.com trusty/multiverse i386 Packages [134 kB]
Get:36 http://archive.ubuntu.com trusty/main Translation-en [762 kB]
Get:37 http://archive.ubuntu.com trusty/multiverse Translation-en [102 kB]
Get:38 http://archive.ubuntu.com trusty/restricted Translation-en [3457 B]
Get:39 http://archive.ubuntu.com trusty/universe Translation-en [4089 kB]
Fetched 24.1 MB in 54s (445 kB/s)
W: GPG error: http://archive.canonical.com trusty Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <email address hidden>
W: Failed to fetch cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803)/dists/trusty/main/binary-amd64/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803)/dists/trusty/restricted/binary-amd64/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803)/dists/trusty/main/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803)/dists/trusty/restricted/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/main/source/Sources Hash Sum mismatch

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/main/binary-amd64/Packages Hash Sum mismatch

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/main/binary-i386/Packages Hash Sum mismatch

E: Some index files failed to download. They have been ignored, or old ones used instead.
subha@subha-desktop:~$ ubuntu-support-status
Support status summary of 'subha-desktop':

You have 2 packages (0.1%) supported until July 2017 (9m)
You have 686 packages (41.1%) supported until October 2021 (5y)

You have 928 packages (55.6%) that can not/no-longer be downloaded
You have 53 packages (3.2%) that are unsupported

Your Hardware Enablement Stack (HWE) is supported until April 2019.

Run with --show-unsupported, --show-supported or --show-all to see more details
subha@subha-desktop:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=100000000 && sudo apt-get dist-upgrade
Ign cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803) trusty InRelease
Ign cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803) trusty Release.gpg
Ign cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803) trusty Release
Err cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803) trusty/main amd64 Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803) trusty/restricted amd64 Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803) trusty/main i386 Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803) trusty/restricted i386 Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Ign cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803) trusty/main Translation-en
Ign cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803) trusty/restricted Translation-en
Ign http://archive.ubuntu.com trusty InRelease
Ign http://archive.canonical.com trusty InRelease
Get:1 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Get:2 http://archive.canonical.com trusty Release.gpg [933 B]
Get:3 http://archive.canonical.com trusty Release [9359 B]
Ign http://linux.dropbox.com trusty InRelease
Get:4 http://archive.ubuntu.com trusty-security InRelease [65.9 kB]
Ign http://archive.canonical.com trusty Release
Hit http://linux.dropbox.com trusty Release.gpg
Ign http://archive.canonical.com trusty/partner amd64 Packages/DiffIndex
Hit http://linux.dropbox.com trusty Release
Hit http://archive.ubuntu.com trusty Release.gpg
Ign http://archive.canonical.com trusty/partner i386 Packages/DiffIndex
Get:5 http://archive.canonical.com trusty/partner Translation-en [4593 B]
Get:6 http://archive.canonical.com trusty/partner amd64 Packages [5612 B]
Get:7 http://archive.canonical.com trusty/partner i386 Packages [6289 B]
Hit http://archive.ubuntu.com trusty-updates/main Sources
Hit http://linux.dropbox.com trusty/main amd64 Packages
Get:8 http://archive.ubuntu.com trusty-updates/restricted Sources [5360 B]
Hit http://linux.dropbox.com trusty/main i386 Packages
Hit http://archive.ubuntu.com trusty-updates/universe Sources
Get:9 http://archive.ubuntu.com trusty-updates/multiverse Sources [7531 B]
Hit http://archive.ubuntu.com trusty-updates/main amd64 Packages
Get:10 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [15.9 kB]
Hit http://archive.ubuntu.com trusty-updates/universe amd64 Packages
Get:11 http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages [15.0 kB]
Hit http://archive.ubuntu.com trusty-updates/main i386 Packages
Get:12 http://archive.ubuntu.com trusty-updates/restricted i386 Packages [15.6 kB]
Hit http://archive.ubuntu.com trusty-updates/universe i386 Packages
Get:13 http://archive.ubuntu.com trusty-updates/multiverse i386 Packages [15.5 kB]
Ign http://linux.dropbox.com trusty/main Translation-en
Hit http://archive.ubuntu.com trusty-updates/main Translation-en
Hit http://archive.ubuntu.com trusty-updates/multiverse Translation-en
Hit http://archive.ubuntu.com trusty-updates/restricted Translation-en
Hit http://archive.ubuntu.com trusty-updates/universe Translation-en
Get:14 http://archive.ubuntu.com trusty-security/main Sources [120 kB]
Get:15 http://archive.ubuntu.com trusty-security/restricted Sources [4064 B]
Get:16 http://archive.ubuntu.com trusty-security/universe Sources [44.7 kB]
Get:17 http://archive.ubuntu.com trusty-security/multiverse Sources [3202 B]
Hit http://archive.ubuntu.com trusty-security/main amd64 Packages
Get:18 http://archive.ubuntu.com trusty-security/restricted amd64 Packages [13.0 kB]
Hit http://archive.ubuntu.com trusty-security/universe amd64 Packages
Get:19 http://archive.ubuntu.com trusty-security/multiverse amd64 Packages [5199 B]
Hit http://archive.ubuntu.com trusty-security/main i386 Packages
Get:20 http://archive.ubuntu.com trusty-security/restricted i386 Packages [12.7 kB]
Hit http://archive.ubuntu.com trusty-security/universe i386 Packages
Get:21 http://archive.ubuntu.com trusty-security/multiverse i386 Packages [5360 B]
Hit http://archive.ubuntu.com trusty-security/main Translation-en
Hit http://archive.ubuntu.com trusty-security/multiverse Translation-en
Hit http://archive.ubuntu.com trusty-security/restricted Translation-en
Hit http://archive.ubuntu.com trusty-security/universe Translation-en
Hit http://archive.ubuntu.com trusty Release
Get:22 http://archive.ubuntu.com trusty/main Sources [14 B]
Hit http://archive.ubuntu.com trusty/restricted Sources
Hit http://archive.ubuntu.com trusty/universe Sources
Hit http://archive.ubuntu.com trusty/multiverse Sources
Get:23 http://archive.ubuntu.com trusty/main amd64 Packages [14 B]
Hit http://archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty/universe amd64 Packages
Hit http://archive.ubuntu.com trusty/multiverse amd64 Packages
Get:24 http://archive.ubuntu.com trusty/main i386 Packages [14 B]
Hit http://archive.ubuntu.com trusty/restricted i386 Packages
Hit http://archive.ubuntu.com trusty/universe i386 Packages
Hit http://archive.ubuntu.com trusty/multiverse i386 Packages
Hit http://archive.ubuntu.com trusty/main Translation-en
Hit http://archive.ubuntu.com trusty/multiverse Translation-en
Hit http://archive.ubuntu.com trusty/restricted Translation-en
Hit http://archive.ubuntu.com trusty/universe Translation-en
Fetched 442 kB in 8s (51.1 kB/s)
W: GPG error: http://archive.canonical.com trusty Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <email address hidden>
W: Failed to fetch cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803)/dists/trusty/main/binary-amd64/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803)/dists/trusty/restricted/binary-amd64/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803)/dists/trusty/main/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803)/dists/trusty/restricted/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/main/source/Sources Hash Sum mismatch

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/main/binary-amd64/Packages Hash Sum mismatch

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/main/binary-i386/Packages Hash Sum mismatch

E: Some index files failed to download. They have been ignored, or old ones used instead.
subha@subha-desktop:~$ find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

/etc/apt/sources.list

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

/etc/apt/sources.list.d/dropbox.list

     1 deb [arch=i386,amd64] http://linux.dropbox.com/ubuntu trusty main

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Try the following:

issue the command (in a terminal window)

sudo gedit /etc/apt/sources.list

This will ask for your password as confirmation for an administrative action and open the sources.list configuration file in an edit.
Insert a hash sign ('#') at the beginning f the first line, changing it from
deb cdrom:[Ubuntu ...
into
# deb cdrom:[Ubuntu ...
Save the file and close the editor.

Issue the command

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 437D05B5

and then verify with the command

sudo apt-get update

whether that has helped or if there are further problems,

Finally copy/paste all output into this question document.

Can you help with this problem?

Provide an answer of your own, or ask Subha Ray for more information if necessary.

To post a message you must log in.