How to solve apt-get update error: Could not get lock var-lib..lock. It is held by process (aptd)

Subscribers:
4,970
Published on ● Video Link: https://www.youtube.com/watch?v=adWzv6k2m4U



Category:
Vlog
Duration: 1:24
76 views
0


Error i have got when trying to run: sudo apt-get update

E: Could not get lock /var/lib/apt/lists/lock. It is held by process 9160 (aptd)
N: Be aware that removing the lock file is not a solution and may break your system.



Resolve:
Kill process 9160 (aptd)

run these commands:
- ps aux | grep '[a]pt'
- kill (process id). for example kill 9160, 10101
- run apt-get update again
- solved




Other Videos By Ambar Hasbiyatmoko


2024-10-13How to solve error importing .sql file - You have an error in your SQL syntax; SQL SECURITY DEFINER
2024-09-03How to solve vault error - gosnowflake DBUS_SESSION_BUS_ADDRESS envvars looks to be not set
2024-08-10How to solve user in samba active directory (EC2 AWS) - Cannot connect to the IP RDP Server
2024-08-04How to solve samba active directory (ad-dc) on ubuntu - chgrp invalid group: domain users
2024-08-01How to solve samba join active directory - Our netbios name can be at most 15 chars long
2024-07-27How to solve resolv.conf in ubuntu - failed removing file /etc/resolv.conf Operation not permitted
2024-07-22How to solve netplan in ubuntu 22.04 - Cannot call Open VSwitch ovsdb server service is not running
2024-07-16How to solve virtualbox - Windows cannot read the ProductKey setting from the unattend answer file
2024-07-16How to solve - waiting for cache lock. Could not get lock dpkg lock-frontend It is held by process
2024-07-06How to solve arduino IDE on ubuntu 22.04 - ser_open can't open device dev ttyACM0 Permission denied
2024-05-20How to solve apt-get update error: Could not get lock var-lib..lock. It is held by process (aptd)
2024-04-07How to solve RDS MySQL - FLUSH TABLES WITH READ LOCK: Access denied for user when running mysqldump
2024-03-15How to fix error installing mysql 5.7 - public key is not available: NO_PUBKEY B7B3B788A8D3785C
2024-03-15How to solve virtualbox - Can't overwrite machine folder. Failed overwrite machine folder at home
2024-03-09Solve growpart error - cannot create directory tmp no space left on device. failed to make temp dir
2024-03-09AWS Cloud - Upgrade MySQL 5.7.37 ke 8.0.35 pada service RDS (Relational Database Service)
2024-03-09AWS Cloud - Mempromote read replica menjadi standalone db instance (master) pada service RDS
2024-03-01How to upgrade ubuntu server 18.04 to 20.04 LTS
2024-02-08How to solve issue on ubuntu 23.10 virtualbox - Host only interface not found in ifconfig command
2024-02-08How to solve error when enabling mysql in ubuntu 18.04 - perl: warning: Setting locale failed
2024-02-08AWS Cloud - Menggunakan parameter groups MySQL pada service RDS



Tags:
apt-get update
error
ubuntu
linux
package
install
lib
lock
aptd
process id
terminal
update app