You can delete the lock file with the following command:
sudo rm /var/lib/apt/lists/lock
You may also need to delete the lock file in the cache directory
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
After that, try opening Synaptic again.
本文介绍了解决Ubuntu系统中因锁文件导致的软件包管理工具Synaptic无法正常工作的问题。通过使用sudo权限删除/var/lib/apt/lists/lock、/var/cache/apt/archives/lock及/var/lib/dpkg/lock等目录下的锁文件,可以有效解决该问题。
312





