![gimp:找不到 libmypaint](https://linux22.com/image/1029713/gimp%EF%BC%9A%E6%89%BE%E4%B8%8D%E5%88%B0%20libmypaint.png)
不知何故,gimp“丢失”了 libmypaint......
$ gimp
gimp: error while loading shared libraries:
libmypaint-1.5.so.1: cannot open shared object file: No such file or directory
$ sudo apt --reinstall install gimp
...
/repeats the above for attempting to start gimp/
著名的:
$ less update-2023-02-25_19h44m32s.log
###>>>--- autoremove ---<<<###
Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be REMOVED:
gir1.2-goa-1.0 libmng2 libmypaint-1.5-1 libmypaint-common
0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
After this operation, 1778 kB disk space will be freed.
Do you want to continue? [Y/n] (Reading database ...
答案1
那么它去哪儿了?
$ sudo updatedb
[sudo] password for hannu:
$ locate libmypaint
... 也就是说不存在!?为什么?
好吧让我们重新安装它...首先,找到包:
$ apt-file find libmypa
...
libmypaint-1.5-1: /usr/lib/x86_64-linux-gnu/libmypaint-1.5.so.1
libmypaint-1.5-1: /usr/lib/x86_64-linux-gnu/libmypaint-1.5.so.1.0.1
libmypaint-1.5-1: /usr/share/doc/libmypaint-1.5-1/changelog.Debian.gz
libmypaint-1.5-1: /usr/share/doc/libmypaint-1.5-1/copyright
...然后重新安装:
$ sudo apt install libmypaint-1.5-1
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
libmypaint-common
The following NEW packages will be installed:
libmypaint-1.5-1 libmypaint-common
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 187 kB of archives.
After this operation, 1 123 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
...
固定的!
显然它被“apt autoremove”删除了,因此由于某种原因它没有被列为我安装的 gimp 2.10 版本的依赖项。