Monday, 23 September 2019

[SOLVED] -- UBUNTU Xenial on a MacBook Pro - E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)

# New Ubuntu Xenial , installed on a Macbook - need to get VSCode n Git etc ..
# Ubuntu installer/updater has Locked the LOCK ....details as below


E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
#
$ ps aux | grep -i apt
root      2340  0.0  0.0   4508  1780 ?        Ss   11:13   0:00 /bin/sh /usr/lib/apt/apt.systemd.daily
root      4060  0.1  0.9 227196 34564 ?        SNl  11:15   0:00 /usr/bin/python3 /usr/sbin/aptd
dhankar   4729  0.0  0.0  21292   944 pts/2    S+   11:21   0:00 grep --color=auto -i apt

#
$ sudo kill -9 2340
$ ps aux | grep -i apt
root      4060  0.2  2.8 298996 106788 ?       SNl  11:15   0:02 /usr/bin/python3 /usr/sbin/aptd
dhankar   5223  0.0  0.0  21292   980 pts/2    S+   11:32   0:00 grep --color=auto -i apt
$ sudo kill -9 4060
$ ps aux | grep -i apt
dhankar   5233  0.0  0.0  21292  1060 pts/2    S+   11:33   0:00 grep --color=auto -i apt
$ sudo kill -9 5233
$ ps aux | grep -i apt
dhankar   5254  0.0  0.0  21292   924 pts/2    S+   11:33   0:00 grep --color=auto -i apt
### Seen above ---ps aux ---- will also pick my own GREP of APT and display ... which is ok
#
#
$ sudo apt install git
Reading package lists... Done
Building dependency tree      


No comments:

Post a Comment