如何修复 synaptic:加载共享库时出错:libxapian.so.30:无法打开共享?

如何修复 synaptic:加载共享库时出错:libxapian.so.30:无法打开共享?

系统信息:Ubuntu 20.04.3 LTS 64 位,gnome 3.36.8,窗口系统 X11 RAM 15GB,SSD 500GB,Intel i5

刚刚安装了 synaptic 但无法运行它。我不确定为什么它一直在寻找库xapian.so.30当有库文件在 /usr/lib/x86_64-linux-gnu 文件夹中。为什么库文件附加有“.30”

请帮我修复它。我为 synaptic 发布此问题,但几乎所有新安装的应用程序都会发生这种情况。

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libept1.6.0
Suggested packages:
  dwww menu deborphan
The following NEW packages will be installed:
  libept1.6.0 synaptic
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 701 kB of archives.
After this operation, 3,663 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu focal/universe amd64 libept1.6.0 amd64 1.1+nmu3ubuntu3 [79.6 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal/universe amd64 synaptic amd64 0.84.6ubuntu5 [622 kB]
Fetched 701 kB in 4s (192 kB/s)   
Selecting previously unselected package libept1.6.0:amd64.
(Reading database ... 388385 files and directories currently installed.)
Preparing to unpack .../libept1.6.0_1.1+nmu3ubuntu3_amd64.deb ...
Unpacking libept1.6.0:amd64 (1.1+nmu3ubuntu3) ...
Selecting previously unselected package synaptic.
Preparing to unpack .../synaptic_0.84.6ubuntu5_amd64.deb ...
Unpacking synaptic (0.84.6ubuntu5) ...
Setting up libept1.6.0:amd64 (1.1+nmu3ubuntu3) ...
Setting up synaptic (0.84.6ubuntu5) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
user@host:~$ synaptic
synaptic: error while loading shared libraries: libxapian.so.30: cannot open shared object file: No such file or directory
user@host:~$ ^C
user@host:~$ sudo updatedb
user@host:~$ locate libxapian.so
/usr/lib/x86_64-linux-gnu/libxapian.so
user@host:~$ ```

aa

答案1

您必须重新安装适当的图书馆使用以下命令从官方 Ubuntu 软件包中获取:

sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install --reinstall libxapian30 libxapian-dev

然后重试运行 Synaptic。

相关内容