apt is hanging everytime I try to perform updates. Stays at "Fetched [an data size] in [a time] ([speed])"

Asked by Eduardo Beltran

Following instructions from https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure

The output is as follows

torrien@AspireV ~$ ubuntu-support-status
Support status summary of 'AspireV':

You have 224 packages (8.6%) supported until enero 2017 (9m)
You have 1993 packages (76.6%) supported until abril 2021 (5y)
You have 5 packages (0.2%) supported until febrero 2017 (9m)
You have 89 packages (3.4%) supported until abril 2019 (3y)

You have 0 packages (0.0%) that can not/no-longer be downloaded
You have 291 packages (11.2%) that are unsupported

Run with --show-unsupported, --show-supported or --show-all to see more details
torrien@AspireV ~$ cat /etc/dpkg/dpkg.cfg.d/pkg-config-hook-config
post-invoke=if { test "$DPKG_HOOK_ACTION" = add-architecture || test "$DPKG_HOOK_ACTION" = remove-architecture; } && test -x /usr/share/pkg-config-dpkghook; then /usr/share/pkg-config-dpkghook update; fi
torrien@AspireV ~$ dpkg --print-foreign-architectures
i386
torrien@AspireV ~$ sudo grep -R proxY /etc/apt
apt/ aptdaemon/
torrien@AspireV ~$ sudo grep -R proxY /etc/apt/*
[sudo] password for torrien:
torrien@AspireV ~$ sudo grep -R proxY /etc/apt/*
torrien@AspireV ~$ grep proxy /etc/environment
torrien@AspireV ~$ echo $http_proxy

torrien@AspireV ~$ echo $ftp_proxy

torrien@AspireV ~$ grep proxy /etc/bash.bashrc
torrien@AspireV ~$ grep proxy ~/.bashrc
torrien@AspireV ~$ cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
torrien@AspireV ~$ cat /etc/apt/apt.conf.d/
00aptitude 01-vendor-ubuntu 20auto-upgrades 70debconf
00trustcdrom 10periodic 20dbus 99update-notifier
01autoremove 15update-stamp 50appstream
01autoremove-kernels 20archive 50unattended-upgrades
torrien@AspireV ~$ cat /etc/apt/apt.conf.d/00aptitude
Aptitude::Get-Root-Command "sudo:/usr/bin/sudo";
torrien@AspireV ~$ sudo fuser -vvv /var/lib/dpkg/lock
torrien@AspireV ~$ sudo fuser -vvv /var/cache/apt/archives/lock
torrien@AspireV ~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04 LTS"
torrien@AspireV ~$ una
unalias uname unattended-upgrade unattended-upgrades
torrien@AspireV ~$ uname -a
Linux AspireV 4.4.0-22-generic #40-Ubuntu SMP Thu May 12 22:03:46 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
torrien@AspireV ~$ sudo rm /var/lib/apt/lists/lock
torrien@AspireV ~$ sudo rm /v
var/ vmlinuz vmlinuz.old
torrien@AspireV ~$ sudo rm /var/cache/apt/archives/lock
torrien@AspireV ~$ sudo rm /var/lib/dpkg/lock
torrien@AspireV ~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
torrien@AspireV ~$ sudo mv /var/lib/dpkg/status
status status-old
torrien@AspireV ~$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/stat
statoverride status status-old
torrien@AspireV ~$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
torrien@AspireV ~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
torrien@AspireV ~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
torrien@AspireV ~$ sudo cp /var/lib/dpkg/available-bad
.adobe/ examples.desktop .pki/
.android/ .gconf/ .Private/
.bash_aliases .gitconfig .profile
.bash_history .gnome/ Programs/
.bash_logout .gnupg/ Public/
.bash_PS .ICEauthority .selected_editor
.bashrc .lesshst .ssh/
.bzr.log .local/ .sudo_as_admin_successful
.cache/ .macromedia/ Templates/
.config/ .mozilla/ .thunderbird/
.designer/ Music/ Videos/
Desktop/ .nano/ .Xauthority
Documents/ .nv/ .xsession-errors
Downloads/ .nvidia-settings-rc .xsession-errors.old
.ecryptfs/ Pictures/ .zsnes/
torrien@AspireV ~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
cp: cannot stat '/var/lib/dpkg/available-old': No such file or directory
torrien@AspireV ~$ sudo rm -rf /var/lib/dpkg/updates/*
torrien@AspireV ~$ sudo rm -rf /var/lib/apt/lists
torrien@AspireV ~$ sudo rm /var/cache/apt/*.bin
torrien@AspireV ~$ sudo mkdir /var/lib/apt/lists
torrien@AspireV ~$ sudo mkdir /var/lib/apt/lists/partial
torrien@AspireV ~$ LANG=C;sudo apt-get clean
torrien@AspireV ~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
torrien@AspireV ~$ sudo dpkg --configure -a
torrien@AspireV ~$ sudo dpkg --clear-avail
torrien@AspireV ~$ 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.
torrien@AspireV ~$ 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.
torrien@AspireV ~$
torrien@AspireV ~$ 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.
torrien@AspireV ~$
torrien@AspireV ~$ LANG=C;sudo apt-get --fix-missing update -o APT::Cache-Limit=100000000
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Get:2 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:3 http://dl.google.com/linux/chrome/deb stable Release [1,189 B]
Get:4 http://archive.canonical.com/ubuntu xenial InRelease [11.5 kB]
Get:5 http://dl.google.com/linux/chrome/deb stable Release.gpg [916 B]
Get:6 http://ppa.launchpad.net/moka/stable/ubuntu xenial InRelease [15.7 kB]
Get:7 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1,344 B]
Get:8 http://ppa.launchpad.net/numix/ppa/ubuntu xenial InRelease [17.5 kB]
Get:9 http://archive.canonical.com/ubuntu xenial/partner amd64 Packages [2,716 B]
Get:10 http://ppa.launchpad.net/moka/stable/ubuntu xenial/main amd64 Packages [1,203 B]
Get:11 http://ppa.launchpad.net/moka/stable/ubuntu xenial/main i386 Packages [1,203 B]
Get:12 http://ppa.launchpad.net/moka/stable/ubuntu xenial/main Translation-en [462 B]
Get:13 http://ppa.launchpad.net/numix/ppa/ubuntu xenial/main amd64 Packages [836 B]
Get:14 http://ppa.launchpad.net/numix/ppa/ubuntu xenial/main i386 Packages [836 B]
Get:15 http://ppa.launchpad.net/numix/ppa/ubuntu xenial/main Translation-en [448 B]
Get:16 http://archive.canonical.com/ubuntu xenial/partner i386 Packages [3,024 B]
Get:17 http://archive.canonical.com/ubuntu xenial/partner Translation-en [1,424 B]
Get:18 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [94.5 kB]
Get:19 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [92.2 kB]
Get:20 http://archive.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]
Get:21 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1,201 kB]
Get:22 http://archive.ubuntu.com/ubuntu xenial/main i386 Packages [1,196 kB]
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 [8,344 B]
Get:27 http://archive.ubuntu.com/ubuntu xenial/restricted i386 Packages [8,684 B]
Get:28 http://archive.ubuntu.com/ubuntu xenial/restricted Translation-en [2,908 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 [7,532 kB]
Get:31 http://archive.ubuntu.com/ubuntu xenial/universe i386 Packages [7,512 kB]
Get:32 http://archive.ubuntu.com/ubuntu xenial/universe Translation-en [4,354 kB]
Get:33 http://archive.ubuntu.com/ubuntu xenial/universe amd64 DEP-11 Metadata [3,410 kB]
Get:34 http://archive.ubuntu.com/ubuntu xenial/universe DEP-11 64x64 Icons [7,448 kB]
Get:35 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [144 kB]
Get:36 http://archive.ubuntu.com/ubuntu xenial/multiverse i386 Packages [140 kB]
Get:37 http://archive.ubuntu.com/ubuntu xenial/multiverse Translation-en [106 kB]
Get:38 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 DEP-11 Metadata [63.8 kB]
Get:39 http://archive.ubuntu.com/ubuntu xenial/multiverse DEP-11 64x64 Icons [230 kB]
Get:40 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [88.4 kB]
Get:41 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [86.3 kB]
Get:42 http://archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [36.4 kB]
Get:43 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [38.8 kB]
Get:44 http://archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [39.7 kB]
Get:45 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [64 B]
Get:46 http://archive.ubuntu.com/ubuntu xenial-updates/restricted i386 Packages [64 B]
Get:47 http://archive.ubuntu.com/ubuntu xenial-updates/restricted Translation-en [64 B]
Get:48 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 DEP-11 Metadata [157 B]
Get:49 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [29.9 kB]
Get:50 http://archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [29.3 kB]
Get:51 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [17.7 kB]
Get:52 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [3,130 B]
Get:53 http://archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [13.0 kB]
Get:54 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [1,176 B]
Get:55 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse i386 Packages [1,344 B]
Get:56 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en [628 B]
Get:57 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [158 B]
Get:58 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [672 B]
Get:59 http://archive.ubuntu.com/ubuntu xenial-backports/main i386 Packages [672 B]
Get:60 http://archive.ubuntu.com/ubuntu xenial-backports/main Translation-en [528 B]
Get:61 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [197 B]
Get:62 http://archive.ubuntu.com/ubuntu xenial-backports/restricted amd64 Packages [64 B]
Get:63 http://archive.ubuntu.com/ubuntu xenial-backports/restricted i386 Packages [64 B]
Get:64 http://archive.ubuntu.com/ubuntu xenial-backports/restricted Translation-en [64 B]
Get:65 http://archive.ubuntu.com/ubuntu xenial-backports/restricted amd64 DEP-11 Metadata [159 B]
Get:66 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [64 B]
Get:67 http://archive.ubuntu.com/ubuntu xenial-backports/universe i386 Packages [64 B]
Get:68 http://archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en [64 B]
Get:69 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [159 B]
Get:70 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse amd64 Packages [64 B]
Get:71 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse i386 Packages [64 B]
Get:72 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse Translation-en [64 B]
Get:73 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse amd64 DEP-11 Metadata [160 B]
Get:74 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 Packages [52.6 kB]
Get:75 http://archive.ubuntu.com/ubuntu xenial-security/main i386 Packages [50.7 kB]
Get:76 http://archive.ubuntu.com/ubuntu xenial-security/main Translation-en [20.6 kB]
Get:77 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [4,815 B]
Get:78 http://archive.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [17.1 kB]
Get:79 http://archive.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [64 B]
Get:80 http://archive.ubuntu.com/ubuntu xenial-security/restricted i386 Packages [64 B]
Get:81 http://archive.ubuntu.com/ubuntu xenial-security/restricted Translation-en [64 B]
Get:82 http://archive.ubuntu.com/ubuntu xenial-security/restricted amd64 DEP-11 Metadata [158 B]
Get:83 http://archive.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [9,720 B]
Get:84 http://archive.ubuntu.com/ubuntu xenial-security/universe i386 Packages [9,712 B]
Get:85 http://archive.ubuntu.com/ubuntu xenial-security/universe Translation-en [7,468 B]
Get:86 http://archive.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [2,329 B]
Get:87 http://archive.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [4,102 B]
Get:88 http://archive.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [1,176 B]
Get:89 http://archive.ubuntu.com/ubuntu xenial-security/multiverse i386 Packages [1,344 B]
Get:90 http://archive.ubuntu.com/ubuntu xenial-security/multiverse Translation-en [628 B]
Get:91 http://archive.ubuntu.com/ubuntu xenial-security/multiverse amd64 DEP-11 Metadata [201 B]
Fetched 36.2 MB in 2min 16s (265 kB/s)

I would welcome any help. Thank you.

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.