海马无法运行,如何正确删除旧版本?

海马无法运行,如何正确删除旧版本?

密码和密钥

seahorse如果单击,密码和密钥别名将不会运行。

从终端启动时,我收到此错误:

seahorse: error while loading shared libraries: libldap_r-2.4.so.2: cannot open shared object file: No such file or directory

当尝试找到这样的包并可能安装它时,我得到:

$ apt-cache policy 'libldap*'
libldap2:
  Installed: (none)
  Candidate: (none)
  Version table:
libldap-common:
  Installed: 2.5.13+dfsg-0ubuntu0.22.04.1
  Candidate: 2.5.13+dfsg-0ubuntu0.22.04.1
  Version table:
 *** 2.5.13+dfsg-0ubuntu0.22.04.1 500
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
        100 /var/lib/dpkg/status
     2.5.11+dfsg-1~exp1ubuntu3.1 500
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
     2.5.11+dfsg-1~exp1ubuntu3 500
        500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy/main i386 Packages
libldap-ocaml-dev:
  Installed: (none)
  Candidate: 2.4.2-1build3
  Version table:
     2.4.2-1build3 500
        500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
libldap-dev:
  Installed: 2.5.13+dfsg-0ubuntu0.22.04.1
  Candidate: 2.5.13+dfsg-0ubuntu0.22.04.1
  Version table:
 *** 2.5.13+dfsg-0ubuntu0.22.04.1 500
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     2.5.11+dfsg-1~exp1ubuntu3.1 500
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
     2.5.11+dfsg-1~exp1ubuntu3 500
        500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
libldap-ocaml-dev-vpsg7:
  Installed: (none)
  Candidate: (none)
  Version table:
libldap-2.3-0:
  Installed: (none)
  Candidate: (none)
  Version table:
libldap-2.4-2:
  Installed: (none)
  Candidate: (none)
  Version table:
libldap-2.5-0:
  Installed: 2.5.13+dfsg-0ubuntu0.22.04.1
  Candidate: 2.5.13+dfsg-0ubuntu0.22.04.1
  Version table:
 *** 2.5.13+dfsg-0ubuntu0.22.04.1 500
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     2.5.11+dfsg-1~exp1ubuntu3.1 500
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
     2.5.11+dfsg-1~exp1ubuntu3 500
        500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
libldap-java:
  Installed: (none)
  Candidate: 5.0.0+dfsg1-1
  Version table:
     5.0.0+dfsg1-1 500
        500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy/universe i386 Packages
libldap2-dev:
  Installed: 2.5.13+dfsg-0ubuntu0.22.04.1
  Candidate: 2.5.13+dfsg-0ubuntu0.22.04.1
  Version table:
 *** 2.5.13+dfsg-0ubuntu0.22.04.1 500
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
        100 /var/lib/dpkg/status
     2.5.11+dfsg-1~exp1ubuntu3.1 500
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
     2.5.11+dfsg-1~exp1ubuntu3 500
        500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy/main i386 Packages
$ sudo apt-get --simulate install libldap-2.4-2
[sudo] password for vlastimil:                
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package libldap-2.4-2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  libldap-common

E: Package 'libldap-2.4-2' has no installation candidate
$ sudo apt-get --simulate install libldap-2.4
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'libldap-2.4-2' for regex 'libldap-2.4'
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$ which seahorse 
/usr/local/bin/seahorse
$ whereis seahorse
seahorse: /usr/bin/seahorse /usr/local/bin/seahorse /usr/libexec/seahorse /usr/share/seahorse /usr/share/man/man1/seahorse.1.gz

所以很自然地我尝试了/usr/bin/seahorse并启动并运行了它:

海马启动并运行

所以,我在下载目录中挖掘,发现:

/home/vlastimil/Downloads/seahorse/seahorse-3.31.91

时间戳为 2019 年 2 月 23 日。由 构建meson,但如何删除它?

答案1

如果您仍然拥有完整的构建树,也许在 中/home/vlastimil/Downloads/seahorse/seahorse-3.31.91/build,那么

cd /home/vlastimil/Downloads/seahorse/seahorse-3.31.91/build
sudo ninja uninstall

或者

cd /home/vlastimil/Downloads/seahorse/seahorse-3.31.91/build
sudo make uninstall

应该卸载/usr/localSeahorse 的版本。

如果构建树不可用,您将必须重新执行构建步骤,最好使用 2019 年使用的相同参数:

cd /home/vlastimil/Downloads/seahorse/seahorse-3.31.91
meson build
cd build && sudo ninja uninstall

相关内容