Closed JeremiahZhang closed 6 years ago
reason:
If you are wondering what caused this error in the first place, the reason is quite evident in the error itself. The error says: Could not get lock /var/cache/apt/archives/lock – open (11: Resource temporarily unavailable). And this is what precisely happening. While you are trying to install some package with APT, some other package manager is running or an update is going on.
参考: Fix E: Could not get lock /var/cache/apt/archives/lock [Quick Tip]
主要原因是 update manager 在更新, 我将 update manager 确认更新, 并完成后, 就可以安装了.
anifacc@mint ~ $ sudo apt-get install python3.5-tk
[sudo] password for anifacc:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'python3-tk' instead of 'python3.5-tk'
The following packages were automatically installed and are no longer required:
cabextract gstreamer0.10-ffmpeg libavcodec-extra libhal1-flash
libqt5x11extras5 libsdl-image1.2 libunshield0 libva-drm1 libva-x11-1
libvncclient1 libxcb-composite0 libxcb-xv0 linux-headers-4.8.0-46
linux-headers-4.8.0-46-generic linux-headers-4.8.0-54
linux-headers-4.8.0-54-generic linux-image-4.8.0-46-generic
linux-image-4.8.0-54-generic linux-image-extra-4.8.0-46-generic
linux-image-extra-4.8.0-54-generic oxideqt-codecs-extra unshield
xplayer-plugins-extra
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
blt tk8.6-blt2.5
Suggested packages:
blt-demo tix python3-tk-dbg
The following NEW packages will be installed:
blt python3-tk tk8.6-blt2.5
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 635 kB of archives.
After this operation, 2,145 kB of additional disk space will be used.
Do you want to continue? [Y/n]
问题:
安装 python3-tk 出现问题: