PDA

View Full Version : cannot get lock when installing apps with sudo



mxdolphin
2021-03-13, 09:36
Description
When I want to install VLC and qbittorrent with the "sudo apt-get install" command, it says it could not get lock and is held by process 3073. Happened after installing the repository, it is from official website. Can anyone please help?

Error Message
E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 3073 (apt-get)
N: Be aware that removing the lock file is not a solution and may break your system.
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?


Version
2021.1
64-bit
in Virtualbox

┌──(kali㉿kali)-[~]
└─$ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255
ether 08:00:27:a6:1f:86 txqueuelen 1000 (Ethernet)
RX packets 878710 bytes 1244441086 (1.1 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 344651 bytes 59621552 (56.8 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 695524 bytes 1110026125 (1.0 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 695524 bytes 1110026125 (1.0 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0






┌──(kali㉿kali)-[~]
└─$ iwconfig
lo no wireless extensions.


eth0 no wireless extensions.

┌──(kali㉿kali)-[~]
└─$ lspci
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:02.0 VGA compatible controller: VMware SVGA II Adapter
00:03.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)
00:04.0 System peripheral: InnoTek Systemberatung GmbH VirtualBox Guest Service
00:05.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 01)
00:06.0 USB controller: Apple Inc. KeyLargo/Intrepid USB
00:07.0 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
00:0d.0 SATA controller: Intel Corporation 82801HM/HEM (ICH8M/ICH8M-E) SATA Controller [AHCI mode] (rev 02)



┌──(kali㉿kali)-[~]
└─$ airmon-ng
Run it as root

┌──(kali㉿kali)-[~]
└─$ dmesg 1 ⨯
dmesg: read kernel buffer failed: Operation not permitted