Recieve error 11: Resources temporarily unavailable

Asked by Brian Buell on 2018-06-04

Followed https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure and this is the output:
brian@brian-X510UA:~$ ubuntu-support-status
Support status summary of 'brian-X510UA':

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

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

brian@brian-X510UA:~$ echo $ftp_proxy

brian@brian-X510UA:~$ grep roxy /etc/bash.bashrc
brian@brian-X510UA:~$ grep roxy ~/.bashrc
brian@brian-X510UA:~$ cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
brian@brian-X510UA:~$ sudo fuser -vvv /var/lib/dpkg/lock
                     USER PID ACCESS COMMAND
/var/lib/dpkg/lock: root 6830 F.... dpkg
brian@brian-X510UA:~$ sudo fuser -vvv /var/cache/apt/archives/lock
                     USER PID ACCESS COMMAND
/var/cache/apt/archives/lock:
                     root 6082 F.... apt-get
brian@brian-X510UA:~$ cat etc/lsb-release
cat: etc/lsb-release: No such file or directory
brian@brian-X510UA:~$ sudo cat etc/lsb-release
cat: etc/lsb-release: No such file or directory
brian@brian-X510UA:~$ uname -a
Linux brian-X510UA 4.15.0-23-generic #25-Ubuntu SMP Wed May 23 18:02:16 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
brian@brian-X510UA:~$ sudo rm /var/lib/apt/lists/lock
brian@brian-X510UA:~$ sudo rm /var/cahce/apt/archives/lock
rm: cannot remove '/var/cahce/apt/archives/lock': No such file or directory
brian@brian-X510UA:~$ sudo -i
root@brian-X510UA:~# sudo rm /var/cache/apt/archives/lock
root@brian-X510UA:~# rm /var/lib/dpkg/lock
root@brian-X510UA:~# cp -arf /var/lib/dpkg /var/lib/dpkg.backup
root@brian-X510UA:~# sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
root@brian-X510UA:~# sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
root@brian-X510UA:~# sudo mv /var/lib/dpkg/available /var/lib/dpkg/availabe-bad
root@brian-X510UA:~# sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/availablecp: cannot stat '/var/lib/dpkg/available-old': No such file or directory
root@brian-X510UA:~# sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
root@brian-X510UA:~# mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
mv: cannot stat '/var/lib/dpkg/available': No such file or directory
root@brian-X510UA:~# exit
logout
brian@brian-X510UA:~$ /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
bash: /var/lib/dpkg/status-old: Permission denied
brian@brian-X510UA:~$ cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
cp: cannot create regular file '/var/lib/dpkg/status': Permission denied
brian@brian-X510UA:~$ sudo -i
root@brian-X510UA:~# /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
-bash: /var/lib/dpkg/status-old: Permission denied
root@brian-X510UA:~# /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
-bash: /var/lib/dpkg/status-old: Permission denied
root@brian-X510UA:~# mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
mv: cannot stat '/var/lib/dpkg/available': No such file or directory
root@brian-X510UA:~# cp /var/lib/dpkg/available-old /var/lib/dpkg/available
cp: cannot stat '/var/lib/dpkg/available-old': No such file or directory
root@brian-X510UA:~#
root@brian-X510UA:~# sudo rm -rf /var/lib/dpkg/updates/*
root@brian-X510UA:~# sudo rm -rf /var/lib/apt/lists
root@brian-X510UA:~# rm var/cahce/apt/*.bin
rm: cannot remove 'var/cahce/apt/*.bin': No such file or directory
root@brian-X510UA:~# sudo rm /var/cache/apt/*.bin
root@brian-X510UA:~# sudo mkdir /var/lib/apt/lists
root@brian-X510UA:~# sudo mkdir/var/lib/apt/lists
sudo: mkdir/var/lib/apt/lists: command not found
root@brian-X510UA:~# mkdir /var/lib/apt/lists
mkdir: cannot create directory ‘/var/lib/apt/lists’: File exists
root@brian-X510UA:~# mkdir -f /var/lib/apt/lists
mkdir: invalid option -- 'f'
Try 'mkdir --help' for more information.
root@brian-X510UA:~# sudo mkdir /var/lib/a[t/lists/partial
mkdir: cannot create directory ‘/var/lib/a[t/lists/partial’: No such file or directory
root@brian-X510UA:~# sudo mkdir /var/lib/apt/lists/partial
root@brian-X510UA:~# LANG=C;sudo apt-get clean
root@brian-X510UA:~# LANG=C;apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
root@brian-X510UA:~# sudo dpkg --clear-avail
root@brian-X510UA:~# sudo dpkg --configure -a
root@brian-X510UA:~# sudo dpkg --clear-avail
root@brian-X510UA:~# LANG=Csudo 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.
root@brian-X510UA:~# 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.
root@brian-X510UA:~# LANG=C;sudO --fiximissing install

Command 'sudO' not found, did you mean:

  command 'sudo' from deb sudo
  command 'sudo' from deb sudo-ldap

Try: apt install <deb name>

root@brian-X510UA:~# 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.
root@brian-X510UA:~# LANG=C;sudo apt-get --purge autoremovw
E: Command line option --purge is not understood in combination with the other options
root@brian-X510UA:~# 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.
root@brian-X510UA:~# LANG=C;sudo apt-get --fix-missing update -o APT::Cache-Limit=100000000
Get:1 http://archive.canonical.com/ubuntu bionic InRelease [10.2 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Get:3 http://archive.canonical.com/ubuntu bionic/partner Sources [1400 B]
Get:4 http://archive.canonical.com/ubuntu bionic/partner i386 Packages [1588 B]
Get:5 http://archive.canonical.com/ubuntu bionic/partner amd64 Packages [1588 B]
Get:6 http://archive.canonical.com/ubuntu bionic/partner Translation-en [708 B]
Get:7 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [83.2 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic-proposed InRelease [242 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic/main Sources [829 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic/multiverse Sources [181 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic/restricted Sources [5324 B]
Get:14 http://archive.ubuntu.com/ubuntu bionic/universe Sources [9051 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic/main i386 Packages [1007 kB]
Get:16 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1019 kB]
Get:17 http://archive.ubuntu.com/ubuntu bionic/main Translation-en [516 kB]
Get:18 http://archive.ubuntu.com/ubuntu bionic/main amd64 DEP-11 Metadata [477 kB]
Get:19 http://archive.ubuntu.com/ubuntu bionic/main DEP-11 48x48 Icons [118 kB]
Get:20 http://archive.ubuntu.com/ubuntu bionic/main DEP-11 64x64 Icons [245 kB]
Get:21 http://archive.ubuntu.com/ubuntu bionic/restricted i386 Packages [9156 B]
Get:22 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [9184 B]
Get:23 http://archive.ubuntu.com/ubuntu bionic/restricted Translation-en [3584 B]
Get:24 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8570 kB]
Get:25 http://archive.ubuntu.com/ubuntu bionic/universe i386 Packages [8531 kB]
Get:26 http://archive.ubuntu.com/ubuntu bionic/universe Translation-en [4941 kB]
Get:27 http://archive.ubuntu.com/ubuntu bionic/universe amd64 DEP-11 Metadata [3287 kB]
Get:28 http://archive.ubuntu.com/ubuntu bionic/universe DEP-11 48x48 Icons [2151 kB]
Get:29 http://archive.ubuntu.com/ubuntu bionic/universe DEP-11 64x64 Icons [8420 kB]
Get:30 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
Get:31 http://archive.ubuntu.com/ubuntu bionic/multiverse i386 Packages [144 kB]
Get:32 http://archive.ubuntu.com/ubuntu bionic/multiverse Translation-en [108 kB]
Get:33 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 DEP-11 Metadata [49.7 kB]
Get:34 http://archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 48x48 Icons [8931 B]
Get:35 http://archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 64x64 Icons [225 kB]
Get:36 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse Sources [1288 B]
Get:37 http://archive.ubuntu.com/ubuntu bionic-updates/main Sources [38.8 kB]
Get:38 http://archive.ubuntu.com/ubuntu bionic-updates/universe Sources [26.1 kB]
Get:39 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [104 kB]
Get:40 http://archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [94.3 kB]
Get:41 http://archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [39.5 kB]
Get:42 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [61.0 kB]
Get:43 http://archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [12.2 kB]
Get:44 http://archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [24.0 kB]
Get:45 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [66.6 kB]
Get:46 http://archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [66.5 kB]
Get:47 http://archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [29.6 kB]
Get:48 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [117 kB]
Get:49 http://archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [125 kB]
Get:50 http://archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [191 kB]
Get:51 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse i386 Packages [1884 B]
Get:52 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [1728 B]
Get:53 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse Translation-en [1236 B]
Get:54 http://archive.ubuntu.com/ubuntu bionic-backports/universe Sources [1160 B]
Get:55 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [2684 B]
Get:56 http://archive.ubuntu.com/ubuntu bionic-backports/universe i386 Packages [2684 B]
Get:57 http://archive.ubuntu.com/ubuntu bionic-backports/universe Translation-en [1136 B]
Get:58 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [5100 B]
Get:59 http://archive.ubuntu.com/ubuntu bionic-backports/universe DEP-11 48x48 Icons [29 B]
Get:60 http://archive.ubuntu.com/ubuntu bionic-backports/universe DEP-11 64x64 Icons [1789 B]
Get:61 http://archive.ubuntu.com/ubuntu bionic-security/multiverse Sources [712 B]
Get:62 http://archive.ubuntu.com/ubuntu bionic-security/main Sources [20.7 kB]
Get:63 http://archive.ubuntu.com/ubuntu bionic-security/universe Sources [4316 B]
Get:64 http://archive.ubuntu.com/ubuntu bionic-security/main i386 Packages [63.6 kB]
Get:65 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 Packages [73.5 kB]
Get:66 http://archive.ubuntu.com/ubuntu bionic-security/main Translation-en [26.7 kB]
Get:67 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [204 B]
Get:68 http://archive.ubuntu.com/ubuntu bionic-security/main DEP-11 48x48 Icons [29 B]
Get:69 http://archive.ubuntu.com/ubuntu bionic-security/main DEP-11 64x64 Icons [29 B]
Get:70 http://archive.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [19.5 kB]
Get:71 http://archive.ubuntu.com/ubuntu bionic-security/universe i386 Packages [19.6 kB]
Get:72 http://archive.ubuntu.com/ubuntu bionic-security/universe Translation-en [9976 B]
Get:73 http://archive.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [2456 B]
Get:74 http://archive.ubuntu.com/ubuntu bionic-security/universe DEP-11 48x48 Icons [4031 B]
Get:75 http://archive.ubuntu.com/ubuntu bionic-security/universe DEP-11 64x64 Icons [4058 B]
Get:76 http://archive.ubuntu.com/ubuntu bionic-security/multiverse i386 Packages [1336 B]
Get:77 http://archive.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [1164 B]
Get:78 http://archive.ubuntu.com/ubuntu bionic-security/multiverse Translation-en [632 B]
Get:79 http://archive.ubuntu.com/ubuntu bionic-proposed/multiverse amd64 DEP-11 Metadata [2468 B]
Get:80 http://archive.ubuntu.com/ubuntu bionic-proposed/multiverse DEP-11 48x48 Icons [29 B]
Get:81 http://archive.ubuntu.com/ubuntu bionic-proposed/multiverse DEP-11 64x64 Icons [2638 B]
Get:82 http://archive.ubuntu.com/ubuntu bionic-proposed/universe i386 Packages [16.9 kB]
Get:83 http://archive.ubuntu.com/ubuntu bionic-proposed/universe amd64 Packages [16.9 kB]
Get:84 http://archive.ubuntu.com/ubuntu bionic-proposed/universe Translation-en [10.2 kB]
Get:85 http://archive.ubuntu.com/ubuntu bionic-proposed/universe amd64 DEP-11 Metadata [24.5 kB]
Get:86 http://archive.ubuntu.com/ubuntu bionic-proposed/universe DEP-11 48x48 Icons [6820 B]
Get:87 http://archive.ubuntu.com/ubuntu bionic-proposed/universe DEP-11 64x64 Icons [15.4 kB]
Get:88 http://archive.ubuntu.com/ubuntu bionic-proposed/main i386 Packages [35.4 kB]
Get:89 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 Packages [45.2 kB]
Get:90 http://archive.ubuntu.com/ubuntu bionic-proposed/main Translation-en [20.1 kB]
Get:91 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 DEP-11 Metadata [71.0 kB]
Get:92 http://archive.ubuntu.com/ubuntu bionic-proposed/main DEP-11 48x48 Icons [16.3 kB]
Get:93 http://archive.ubuntu.com/ubuntu bionic-proposed/main DEP-11 64x64 Icons [25.5 kB]
Fetched 52.4 MB in 11s (4681 kB/s)
Reading package lists... Done
root@brian-X510UA:~# LANG=C;sudo apt-get update -o APT::Cache-Limit=100000000 && sudo apt-get dist-upgrade
Hit:1 http://archive.canonical.com/ubuntu bionic InRelease
Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:5 http://archive.ubuntu.com/ubuntu bionic-security InRelease
Hit:6 http://archive.ubuntu.com/ubuntu bionic-proposed InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  adduser apt apt-utils base-files base-passwd bash bash-completion
  bsdmainutils bsdutils ca-certificates coreutils dash debconf debconf-i18n
  debianutils diffutils dpkg e2fsprogs e2fsprogs-l10n fdisk findutils
  gcc-8-base gpgv grep gzip hostname init-system-helpers libacl1
  libapt-inst2.0 libapt-pkg5.0 libattr1 libaudit-common libaudit1 libblkid1
  libbsd0 libbz2-1.0 libc-bin libc6 libcap-ng0 libcom-err2 libdb5.3
  libdebconfclient0 libext2fs2 libfdisk1 libffi6 libgcc1 libgcrypt20 libgmp10
  libgnutls30 libgpg-error0 libgpm2 libhogweed4 libidn2-0
  liblocale-gettext-perl liblz4-1 liblzma5 libmount1 libncursesw5 libnettle6
  libp11-kit0 libpam-modules libpam-modules-bin libpam-runtime libpam0g
  libpcre3 libseccomp2 libselinux1 libsemanage-common libsemanage1 libsepol1
  libsmartcols1 libss2 libssl1.1 libstdc++6 libsystemd0 libtasn1-6
  libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libtinfo5
  libudev1 libunistring2 libuuid1 libzstd1 login mawk ncurses-base ncurses-bin
  openssl passwd perl-base sed sysvinit-utils tar ubuntu-keyring update-motd
  util-linux uuid-runtime zlib1g
0 upgraded, 99 newly installed, 0 to remove and 0 not upgraded.
Need to get 23.5 MB of archives.
After this operation, 94.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu bionic/main amd64 gcc-8-base amd64 8-20180414-1ubuntu2 [18.2 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic/main amd64 libc6 amd64 2.27-3ubuntu1 [2824 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic/main amd64 libgcc1 amd64 1:8-20180414-1ubuntu2 [41.0 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic/main amd64 mawk amd64 1.3.3-17ubuntu3 [81.5 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic/main amd64 base-files amd64 10.1ubuntu2 [58.2 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 libtinfo5 amd64 6.1-1ubuntu1.18.04 [80.3 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic/main amd64 debianutils amd64 4.8.4 [85.7 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic/main amd64 bash amd64 4.4.18-2ubuntu1 [614 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic/main amd64 libgpg-error0 amd64 1.27-6 [38.0 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic/main amd64 libgcrypt20 amd64 1.8.1-4ubuntu1 [418 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic/main amd64 liblz4-1 amd64 0.0~r131-2ubuntu3 [48.1 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic/main amd64 liblzma5 amd64 5.2.2-1.3 [90.8 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 libsystemd0 amd64 237-3ubuntu10.1 [204 kB]
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 bsdutils amd64 1:2.31.1-0.4ubuntu3.1 [60.2 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic/main amd64 libattr1 amd64 1:2.4.47-2build1 [9524 B]
Get:16 http://archive.ubuntu.com/ubuntu bionic/main amd64 libacl1 amd64 2.2.52-3build1 [16.1 kB]
Get:17 http://archive.ubuntu.com/ubuntu bionic/main amd64 libpcre3 amd64 2:8.39-9 [229 kB]
Get:18 http://archive.ubuntu.com/ubuntu bionic/main amd64 libselinux1 amd64 2.7-2build2 [68.2 kB]
Get:19 http://archive.ubuntu.com/ubuntu bionic/main amd64 coreutils amd64 8.28-1ubuntu1 [1231 kB]
Get:20 http://archive.ubuntu.com/ubuntu bionic/main amd64 libbz2-1.0 amd64 1.0.6-8.1 [30.9 kB]
Get:21 http://archive.ubuntu.com/ubuntu bionic/main amd64 libzstd1 amd64 1.3.3+dfsg-2ubuntu1 [189 kB]
Get:22 http://archive.ubuntu.com/ubuntu bionic/main amd64 zlib1g amd64 1:1.2.11.dfsg-0ubuntu2 [56.5 kB]
Get:23 http://archive.ubuntu.com/ubuntu bionic/main amd64 tar amd64 1.29b-2 [233 kB]
Get:24 http://archive.ubuntu.com/ubuntu bionic/main amd64 dpkg amd64 1.19.0.5ubuntu2 [1139 kB]
Get:25 http://archive.ubuntu.com/ubuntu bionic/main amd64 dash amd64 0.5.8-2.10 [88.5 kB]
Get:26 http://archive.ubuntu.com/ubuntu bionic/main amd64 diffutils amd64 1:3.6-1 [167 kB]
Get:27 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libuuid1 amd64 2.31.1-0.4ubuntu3.1 [20.0 kB]
Get:28 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libblkid1 amd64 2.31.1-0.4ubuntu3.1 [124 kB]
Get:29 http://archive.ubuntu.com/ubuntu bionic/main amd64 libcom-err2 amd64 1.44.1-1 [9860 B]
Get:30 http://archive.ubuntu.com/ubuntu bionic/main amd64 libext2fs2 amd64 1.44.1-1 [158 kB]
Get:31 http://archive.ubuntu.com/ubuntu bionic/main amd64 libss2 amd64 1.44.1-1 [11.1 kB]
Get:32 http://archive.ubuntu.com/ubuntu bionic/main amd64 e2fsprogs amd64 1.44.1-1 [390 kB]
Get:33 http://archive.ubuntu.com/ubuntu bionic/main amd64 findutils amd64 4.6.0+git+20170828-2 [291 kB]
Get:34 http://archive.ubuntu.com/ubuntu bionic/main amd64 grep amd64 3.1-2 [158 kB]
Get:35 http://archive.ubuntu.com/ubuntu bionic/main amd64 gzip amd64 1.6-5ubuntu1 [89.8 kB]
Get:36 http://archive.ubuntu.com/ubuntu bionic/main amd64 hostname amd64 3.20 [11.3 kB]
Get:37 http://archive.ubuntu.com/ubuntu bionic/main amd64 libaudit-common all 1:2.8.2-1ubuntu1 [4132 B]
Get:38 http://archive.ubuntu.com/ubuntu bionic/main amd64 libcap-ng0 amd64 0.7.7-3.1 [11.1 kB]
Get:39 http://archive.ubuntu.com/ubuntu bionic/main amd64 libaudit1 amd64 1:2.8.2-1ubuntu1 [38.9 kB]
Get:40 http://archive.ubuntu.com/ubuntu bionic/main amd64 perl-base amd64 5.26.1-6 [1391 kB]
Get:41 http://archive.ubuntu.com/ubuntu bionic/main amd64 debconf all 1.5.66 [124 kB]
Get:42 http://archive.ubuntu.com/ubuntu bionic/main amd64 libpam0g amd64 1.1.8-3.6ubuntu2 [55.1 kB]
Get:43 http://archive.ubuntu.com/ubuntu bionic/main amd64 libdb5.3 amd64 5.3.28-13.1ubuntu1 [672 kB]
Get:44 http://archive.ubuntu.com/ubuntu bionic/main amd64 libpam-modules-bin amd64 1.1.8-3.6ubuntu2 [36.7 kB]
Get:45 http://archive.ubuntu.com/ubuntu bionic/main amd64 libpam-modules amd64 1.1.8-3.6ubuntu2 [242 kB]
Get:46 http://archive.ubuntu.com/ubuntu bionic/main amd64 libpam-runtime all 1.1.8-3.6ubuntu2 [37.0 kB]
Get:47 http://archive.ubuntu.com/ubuntu bionic/main amd64 login amd64 1:4.5-1ubuntu1 [307 kB]
Get:48 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 ncurses-bin amd64 6.1-1ubuntu1.18.04 [163 kB]
Get:49 http://archive.ubuntu.com/ubuntu bionic/main amd64 sed amd64 4.4-2 [182 kB]
Get:50 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libmount1 amd64 2.31.1-0.4ubuntu3.1 [136 kB]
Get:51 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libsmartcols1 amd64 2.31.1-0.4ubuntu3.1 [83.6 kB]
Get:52 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 libudev1 amd64 237-3ubuntu10.1 [53.5 kB]
Get:53 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libfdisk1 amd64 2.31.1-0.4ubuntu3.1 [164 kB]
Get:54 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 libncursesw5 amd64 6.1-1ubuntu1.18.04 [117 kB]
Get:55 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 fdisk amd64 2.31.1-0.4ubuntu3.1 [107 kB]
Get:56 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 util-linux amd64 2.31.1-0.4ubuntu3.1 [902 kB]
Get:57 http://archive.ubuntu.com/ubuntu bionic/main amd64 libdebconfclient0 amd64 0.213ubuntu1 [6048 B]
Get:58 http://archive.ubuntu.com/ubuntu bionic/main amd64 base-passwd amd64 3.5.44 [47.2 kB]
Get:59 http://archive.ubuntu.com/ubuntu bionic/main amd64 init-system-helpers all 1.51 [37.3 kB]
Get:60 http://archive.ubuntu.com/ubuntu bionic/main amd64 libc-bin amd64 2.27-3ubuntu1 [641 kB]
Get:61 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 ncurses-base all 6.1-1ubuntu1.18.04 [17.8 kB]
Get:62 http://archive.ubuntu.com/ubuntu bionic/main amd64 sysvinit-utils amd64 2.88dsf-59.10ubuntu1 [18.6 kB]
Get:63 http://archive.ubuntu.com/ubuntu bionic/main amd64 libsemanage-common all 2.7-2build2 [6904 B]
Get:64 http://archive.ubuntu.com/ubuntu bionic/main amd64 libsepol1 amd64 2.7-1 [251 kB]
Get:65 http://archive.ubuntu.com/ubuntu bionic/main amd64 libsemanage1 amd64 2.7-2build2 [84.6 kB]
Get:66 http://archive.ubuntu.com/ubuntu bionic/main amd64 passwd amd64 1:4.5-1ubuntu1 [816 kB]
Get:67 http://archive.ubuntu.com/ubuntu bionic/main amd64 adduser all 3.116ubuntu1 [163 kB]
Get:68 http://archive.ubuntu.com/ubuntu bionic/main amd64 gpgv amd64 2.2.4-1ubuntu1 [196 kB]
Get:69 http://archive.ubuntu.com/ubuntu bionic/main amd64 ubuntu-keyring all 2018.02.28 [20.7 kB]
Get:70 http://archive.ubuntu.com/ubuntu bionic/main amd64 libstdc++6 amd64 8-20180414-1ubuntu2 [399 kB]
Get:71 http://archive.ubuntu.com/ubuntu bionic/main amd64 libapt-pkg5.0 amd64 1.6.1 [801 kB]
Get:72 http://archive.ubuntu.com/ubuntu bionic/main amd64 libgmp10 amd64 2:6.1.2+dfsg-2 [240 kB]
Get:73 http://archive.ubuntu.com/ubuntu bionic/main amd64 libnettle6 amd64 3.4-1 [109 kB]
Get:74 http://archive.ubuntu.com/ubuntu bionic/main amd64 libhogweed4 amd64 3.4-1 [137 kB]
Get:75 http://archive.ubuntu.com/ubuntu bionic/main amd64 libunistring2 amd64 0.9.9-0ubuntu1 [369 kB]
Get:76 http://archive.ubuntu.com/ubuntu bionic/main amd64 libidn2-0 amd64 2.0.4-1.1build2 [48.2 kB]
Get:77 http://archive.ubuntu.com/ubuntu bionic/main amd64 libffi6 amd64 3.2.1-8 [17.9 kB]
Get:78 http://archive.ubuntu.com/ubuntu bionic/main amd64 libp11-kit0 amd64 0.23.9-2 [187 kB]
Get:79 http://archive.ubuntu.com/ubuntu bionic/main amd64 libtasn1-6 amd64 4.13-2 [36.2 kB]
Get:80 http://archive.ubuntu.com/ubuntu bionic/main amd64 libgnutls30 amd64 3.5.18-1ubuntu1 [644 kB]
Get:81 http://archive.ubuntu.com/ubuntu bionic/main amd64 libseccomp2 amd64 2.3.1-2.1ubuntu4 [37.6 kB]
Get:82 http://archive.ubuntu.com/ubuntu bionic/main amd64 apt amd64 1.6.1 [1166 kB]
Get:83 http://archive.ubuntu.com/ubuntu bionic/main amd64 liblocale-gettext-perl amd64 1.07-3build2 [16.6 kB]
Get:84 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 uuid-runtime amd64 2.31.1-0.4ubuntu3.1 [34.9 kB]
Get:85 http://archive.ubuntu.com/ubuntu bionic/main amd64 libapt-inst2.0 amd64 1.6.1 [55.6 kB]
Get:86 http://archive.ubuntu.com/ubuntu bionic/main amd64 apt-utils amd64 1.6.1 [208 kB]
Get:87 http://archive.ubuntu.com/ubuntu bionic/main amd64 libssl1.1 amd64 1.1.0g-2ubuntu4 [1128 kB]
Get:88 http://archive.ubuntu.com/ubuntu bionic/main amd64 openssl amd64 1.1.0g-2ubuntu4 [532 kB]
Get:89 http://archive.ubuntu.com/ubuntu bionic/main amd64 ca-certificates all 20180409 [151 kB]
Get:90 http://archive.ubuntu.com/ubuntu bionic/main amd64 libtext-iconv-perl amd64 1.7-5build6 [13.0 kB]
Get:91 http://archive.ubuntu.com/ubuntu bionic/main amd64 libtext-charwidth-perl amd64 0.04-7.1 [9492 B]
Get:92 http://archive.ubuntu.com/ubuntu bionic/main amd64 libtext-wrapi18n-perl all 0.06-7.1 [8204 B]
Get:93 http://archive.ubuntu.com/ubuntu bionic/main amd64 debconf-i18n all 1.5.66 [205 kB]
Get:94 http://archive.ubuntu.com/ubuntu bionic/main amd64 libbsd0 amd64 0.8.7-1 [41.5 kB]
Get:95 http://archive.ubuntu.com/ubuntu bionic/main amd64 bash-completion all 1:2.8-1ubuntu1 [168 kB]
Get:96 http://archive.ubuntu.com/ubuntu bionic/main amd64 bsdmainutils amd64 11.1.2ubuntu1 [181 kB]
Get:97 http://archive.ubuntu.com/ubuntu bionic/universe amd64 e2fsprogs-l10n all 1.44.1-1 [4844 B]
Get:98 http://archive.ubuntu.com/ubuntu bionic/main amd64 libgpm2 amd64 1.20.7-5 [15.1 kB]
Get:99 http://archive.ubuntu.com/ubuntu bionic/main amd64 update-motd all 3.6-0ubuntu1 [5378 B]
Fetched 23.5 MB in 5s (4765 kB/s)
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
Selecting previously unselected package gcc-8-base:amd64.
(Reading database ... 58 files and directories currently installed.)
Preparing to unpack .../gcc-8-base_8-20180414-1ubuntu2_amd64.deb ...
Unpacking gcc-8-base:amd64 (8-20180414-1ubuntu2) ...
Setting up gcc-8-base:amd64 (8-20180414-1ubuntu2) ...
Selecting previously unselected package libc6:amd64.
(Reading database ... 72 files and directories currently installed.)
Preparing to unpack .../libc6_2.27-3ubuntu1_amd64.deb ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing archive /var/cache/apt/archives/libc6_2.27-3ubuntu1_amd64.deb (--unpack):
 new libc6:amd64 package pre-installation script subprocess returned error exit status 1
Selecting previously unselected package libgcc1:amd64.
Preparing to unpack .../libgcc1_1%3a8-20180414-1ubuntu2_amd64.deb ...
Unpacking libgcc1:amd64 (1:8-20180414-1ubuntu2) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libc6_2.27-3ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@brian-X510UA:~# find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

/etc/apt/sources.list

     1 # deb cdrom:[Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426)]/ bionic main restricted
     2 deb-src http://archive.ubuntu.com/ubuntu bionic main restricted #Added by software-properties
     3
     4 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
     5 # newer versions of the distribution.
     6 deb http://archive.ubuntu.com/ubuntu bionic main restricted
     7 deb-src http://archive.ubuntu.com/ubuntu bionic multiverse universe
     8
     9 ## Major bug fix updates produced after the final release of the
    10 ## distribution.
    11 deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted
    12 deb-src http://archive.ubuntu.com/ubuntu bionic-updates main multiverse universe restricted
    13
    14 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    15 ## team. Also, please note that software in universe WILL NOT receive any
    16 ## review or updates from the Ubuntu security team.
    17 deb http://archive.ubuntu.com/ubuntu bionic universe
    18 # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic universe
    19 deb http://archive.ubuntu.com/ubuntu bionic-updates universe
    20 # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe
    21
    22 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    23 ## team, and may not be under a free licence. Please satisfy yourself as to
    24 ## your rights to use the software. Also, please note that software in
    25 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    26 ## security team.
    27 deb http://archive.ubuntu.com/ubuntu bionic multiverse
    28 # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic multiverse
    29 deb http://archive.ubuntu.com/ubuntu bionic-updates multiverse
    30 # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
    31
    32 ## N.B. software from this repository may not have been tested as
    33 ## extensively as that contained in the main release, although it includes
    34 ## newer versions of some applications which may provide useful features.
    35 ## Also, please note that software in backports WILL NOT receive any review
    36 ## or updates from the Ubuntu security team.
    37 deb http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
    38 deb-src http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
    39
    40 ## Uncomment the following two lines to add software from Canonical's
    41 ## 'partner' repository.
    42 ## This software is not part of Ubuntu, but is offered by Canonical and the
    43 ## respective vendors as a service to Ubuntu users.
    44 deb http://archive.canonical.com/ubuntu bionic partner
    45 deb-src http://archive.canonical.com/ubuntu bionic partner
    46
    47 deb http://archive.ubuntu.com/ubuntu bionic-security main restricted
    48 deb-src http://archive.ubuntu.com/ubuntu bionic-security main multiverse universe restricted
    49 deb http://archive.ubuntu.com/ubuntu bionic-security universe
    50 # deb-src http://security.ubuntu.com/ubuntu bionic-security universe
    51 deb http://archive.ubuntu.com/ubuntu bionic-security multiverse
    52 deb http://archive.ubuntu.com/ubuntu bionic-proposed multiverse universe main restricted
    53 # deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse
root@brian-X510UA:~# \;
;: command not found
root@brian-X510UA:~#
root@brian-X510UA:~# sudo dpkg --audit
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
 libgcc1:amd64 GCC support library

root@brian-X510UA:~#

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Last query:
2018-06-04
Last reply:
2018-06-20
Manfred Hampl (m-hampl) said : #1

It seems that you still have some other package management program running, despite the instructions in step 4 of https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure

What is the output of
sudo fuser -vvv /var/cache/debconf/config.dat

Launchpad Janitor (janitor) said : #2

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