Could not get lock /var/lib/apt/lists/lock
code:log
E: Could not get lock /var/lib/apt/lists/lock. It is held by process <process id> (apt-get)
N: Be aware that removing the lock file is not a solution and may break your system.
E: Unable to lock directory /var/lib/apt/lists/
まずはなんのプロセスか見てみる
$ ps aux | grep <process id>
自動アップデートの場合はしばらく待てば終わる