unable to use apt package manager
I believe this issue began when I tried to install mailutils earlier today using apt-get. the installation seemed to be going normally until I got a pop up in my terminal about the configuration file/config options. I was unable to interact with the message. I don't have a screenshot because I forgot to take one but it was the different config options with "Ok" at the bottom. since I was unable to interact with it I just closed it and went about what I was doing. I then tried to install tmux using apt-get and received this error message:
synth@ai:~$ sudo apt-get install tmux
[sudo] password for synth:
E: Could not get lock /var/lib/
E: Unable to acquire the dpkg frontend lock (/var/lib/
upon googling it I was sent to https:/
ubuntu-
cat /etc/dpkg/
dpkg --print-
sudo grep -R roxy /etc/apt/*
grep roxy /etc/environment
echo $http_proxy
echo $ftp_proxy
grep roxy /etc/bash.bashrc
grep roxy ~/.bashrc
cat /etc/apt/apt.conf
sudo fuser -vvv /var/lib/dpkg/lock
sudo fuser -vvv /var/cache/
cat /etc/lsb-release
uname -a
sudo rm /var/lib/
sudo rm /var/cache/
sudo rm /var/lib/dpkg/lock
sudo cp -arf /var/lib/dpkg /var/lib/
sudo mv /var/lib/
sudo cp /var/lib/
sudo mv /var/lib/
sudo cp /var/lib/
sudo rm -rf /var/lib/
sudo rm -rf /var/lib/apt/lists
sudo rm /var/cache/
sudo mkdir /var/lib/apt/lists
sudo mkdir /var/lib/
LANG=C;sudo apt-get clean
LANG=C;sudo apt-get autoclean
sudo dpkg --configure -a
sudo dpkg --clear-avail
LANG=C;sudo apt-get -f install
LANG=C;sudo apt-get --fix-missing install
LANG=C;sudo apt-get --purge autoremove
LANG=C;sudo apt-get --fix-missing update -o APT::Cache-
LANG=C;sudo apt-get update -o APT::Cache-
find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;
sudo dpkg --audit
which are as follows:
synth@ai:~$ ubuntu-
Traceback (most recent call last):
File "/usr/bin/
with apt.Cache() as cache:
File "/usr/lib/
self.
File "/usr/lib/
self._depcache = apt_pkg.
apt_pkg.Error: E:The package postfix needs to be reinstalled, but I can't find an archive for it.
synth@ai:~$
synth@ai:~$ cat /etc/dpkg/
cat: /etc/dpkg/
synth@ai:~$
synth@ai:~$ dpkg --print-
i386
synth@ai:~$
synth@ai:~$ sudo grep -R roxy /etc/apt/*
synth@ai:~$
synth@ai:~$ grep roxy /etc/environment
synth@ai:~$
synth@ai:~$ echo $http_proxy
synth@ai:~$
synth@ai:~$ echo $ftp_proxy
synth@ai:~$
synth@ai:~$ grep roxy /etc/bash.bashrc
synth@ai:~$
synth@ai:~$ grep roxy ~/.bashrc
synth@ai:~$
synth@ai:~$ cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
synth@ai:~$
synth@ai:~$ sudo fuser -vvv /var/lib/dpkg/lock
synth@ai:~$
synth@ai:~$ sudo fuser -vvv /var/cache/
synth@ai:~$
synth@ai:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
synth@ai:~$
synth@ai:~$ uname -a
Linux ai 4.15.0-42-generic #45-Ubuntu SMP Thu Nov 15 19:32:57 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
synth@ai:~$
synth@ai:~$ sudo rm /var/lib/
synth@ai:~$
synth@ai:~$ sudo rm /var/cache/
synth@ai:~$
synth@ai:~$ sudo rm /var/lib/dpkg/lock
synth@ai:~$
synth@ai:~$ sudo cp -arf /var/lib/dpkg /var/lib/
synth@ai:~$
synth@ai:~$ sudo mv /var/lib/
synth@ai:~$
synth@ai:~$ sudo cp /var/lib/
synth@ai:~$
synth@ai:~$ sudo mv /var/lib/
mv: cannot stat '/var/lib/
synth@ai:~$
synth@ai:~$ sudo cp /var/lib/
cp: cannot stat '/var/lib/
synth@ai:~$
synth@ai:~$ sudo rm -rf /var/lib/
synth@ai:~$
synth@ai:~$ sudo rm -rf /var/lib/apt/lists
synth@ai:~$
synth@ai:~$ sudo rm /var/cache/
synth@ai:~$
synth@ai:~$ sudo mkdir /var/lib/apt/lists
synth@ai:~$
synth@ai:~$ sudo mkdir /var/lib/
synth@ai:~$
synth@ai:~$ LANG=C;sudo apt-get clean
synth@ai:~$
synth@ai:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
synth@ai:~$
synth@ai:~$ sudo dpkg --configure -a
dpkg: error: dpkg frontend is locked by another process
synth@ai:~$
synth@ai:~$ sudo dpkg --clear-avail
dpkg: error: dpkg frontend is locked by another process
synth@ai:~$
synth@ai:~$ LANG=C;sudo apt-get -f install
E: Could not get lock /var/lib/
E: Unable to acquire the dpkg frontend lock (/var/lib/
synth@ai:~$
synth@ai:~$ LANG=C;sudo apt-get --fix-missing install
E: Could not get lock /var/lib/
E: Unable to acquire the dpkg frontend lock (/var/lib/
synth@ai:~$
synth@ai:~$ LANG=C;sudo apt-get --purge autoremove
E: Could not get lock /var/lib/
E: Unable to acquire the dpkg frontend lock (/var/lib/
synth@ai:~$
synth@ai:~$ LANG=C;sudo apt-get --fix-missing update -o APT::Cache-
Get:1 http://
Get:2 https:/
Get:3 https:/
Get:4 https:/
Get:5 https:/
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Get:24 http://
Get:25 http://
Get:26 http://
Get:27 http://
Get:28 http://
Get:29 http://
Get:30 http://
Get:31 http://
Get:32 http://
Get:33 http://
Get:34 http://
Get:35 http://
Get:36 http://
Get:37 http://
Get:38 http://
Get:39 http://
Get:40 http://
Get:41 http://
Get:42 http://
Get:43 http://
Get:44 http://
Get:45 http://
Get:46 http://
Get:47 http://
Get:48 http://
Get:49 http://
Get:50 http://
Get:51 http://
Get:52 http://
Get:53 http://
Get:54 http://
Get:55 http://
Get:56 http://
Get:57 http://
Get:58 http://
Get:59 http://
Get:60 http://
Get:61 http://
Get:62 http://
Get:63 http://
Get:64 http://
Get:65 http://
Get:66 http://
Get:67 http://
Get:68 http://
Get:69 http://
Get:70 http://
Get:71 http://
Fetched 44.9 MB in 1min 2s (721 kB/s)
Reading package lists... Done
synth@ai:~$
synth@ai:~$ LANG=C;sudo apt-get update -o APT::Cache-
Hit:1 http://
Hit:2 https:/
Hit:3 http://
Hit:4 http://
Hit:5 http://
Reading package lists... Done
E: Could not get lock /var/lib/
E: Unable to acquire the dpkg frontend lock (/var/lib/
synth@ai:~$
synth@ai:~$ find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;
/etc/apt/
1 # deb http://
2 # deb-src http://
/etc/apt/
1 # deb http://
2 # deb-src http://
/etc/apt/
1 # deb http://
2 # deb-src http://
3 # deb-src http://
4 # deb-src http://
/etc/apt/
1 deb https:/
/etc/apt/
1 # deb cdrom:[Ubuntu 18.04.1 LTS _Bionic Beaver_ - Release amd64 (20180725)]/ bionic main restricted
2
3 # See http://
4 # newer versions of the distribution.
5 deb http://
6 # deb-src http://
7
8 ## Major bug fix updates produced after the final release of the
9 ## distribution.
10 deb http://
11 # deb-src http://
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://
17 # deb-src http://
18 deb http://
19 # deb-src http://
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://
27 # deb-src http://
28 deb http://
29 # deb-src http://
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 deb http://
37 # deb-src http://
38
39 ## Uncomment the following two lines to add software from Canonical's
40 ## 'partner' repository.
41 ## This software is not part of Ubuntu, but is offered by Canonical and the
42 ## respective vendors as a service to Ubuntu users.
43 # deb http://
44 # deb-src http://
45
46 deb http://
47 # deb-src http://
48 deb http://
49 # deb-src http://
50 deb http://
51 # deb-src http://
synth@ai:~$
synth@ai:~$
I'm certain this somehow pertains to my attempt to install mailutils. I have followed the instructions on the troubleshooting page up to the step about posting the output of the aforementioned commands. I don't really care if I end up with mailutils installed or not but I'd like to be able to install things again. Any help would be appreciated. Thanks!
ps I am using Ubuntu 18.04, pretty much default (gnome, gtk3, etc) I don't know if that information is helpful but there it is.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Emma Carlton for more information if necessary.