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

Опубликовано: 20 Май 2024
на канале: Ambar Hasbiyatmoko
76
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