![安装后无法运行 texstudio](https://linux22.com/image/1067037/%E5%AE%89%E8%A3%85%E5%90%8E%E6%97%A0%E6%B3%95%E8%BF%90%E8%A1%8C%20texstudio.png)
我正在运行全新安装的 Ubuntu 18.04.3。所以我的问题是:当我以通常的方式使用终端安装 texstudio 时,一切似乎都运行顺利:
zosiah@zosiah-HP-255-G6-Notebook-PC:~$ sudo apt install texstudio
[sudo] password for zosiah:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libqt5concurrent5
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
texstudio-l10n
Suggested packages:
latex-beamer
The following NEW packages will be installed:
texstudio texstudio-l10n
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/5.775 kB of archives.
After this operation, 16,5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 365865 files and directories currently installed.)
Preparing to unpack .../texstudio_2.12.6+debian-2_amd64.deb ...
Unpacking texstudio (2.12.6+debian-2) ...
Selecting previously unselected package texstudio-l10n.
Preparing to unpack .../texstudio-l10n_2.12.6+debian-2_all.deb ...
Unpacking texstudio-l10n (2.12.6+debian-2) ...
Setting up texstudio (2.12.6+debian-2) ...
Setting up texstudio-l10n (2.12.6+debian-2) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
但是当我尝试运行 texstudio 终端时说:
zosiah@zosiah-HP-255-G6-Notebook-PC:~$ texstudio
texstudio: error while loading shared libraries: libdouble-conversion.so.1: cannot open shared object file: No such file or directory
我在谷歌上搜索了一段时间,但还是没有找到解决方案……有什么想法吗?PS 我也无法安装 texmaker 和 emacs25。这对我来说听起来很奇怪,因为到目前为止,我从未遇到过这样的问题,无论是使用 synaptic 还是使用 apt 等等……到底是怎么回事?
编辑:嗨 N0rbert,谢谢回复!以下是请求的输出:
zosiah@zosiah-HP-255-G6-Notebook-PC:~$ which texstudio
/usr/bin/texstudio
zosiah@zosiah-HP-255-G6-Notebook-PC:~$ ldd $(which texstudio) | grep not
(此处无输出)
zosiah@zosiah-HP-255-G6-Notebook-PC:~$ apt-cache policy texstudio libdouble-conversion1
texstudio:
Installed: 2.12.6+debian-2
Candidate: 2.12.6+debian-2
Version table:
*** 2.12.6+debian-2 500
500 http://it.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
100 /var/lib/dpkg/status
libdouble-conversion1:
Installed: 2.0.1-4ubuntu1
Candidate: 2.0.1-4ubuntu1
Version table:
*** 2.0.1-4ubuntu1 500
500 http://it.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
100 /var/lib/dpkg/status
编辑2 我正在添加 ldd $(locate libdouble-conversion.so.1) 的输出:
zosiah@zosiah-HP-255-G6-Notebook-PC:~$ ldd $(locate libdouble-conversion.so.1)
/usr/lib/x86_64-linux-gnu/libdouble-conversion.so.1:
linux-vdso.so.1 (0x00007ffe54bc4000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f80a84b9000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f80a8119000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f80a7d21000)
/lib64/ld-linux-x86-64.so.2 (0x00007f80a8a61000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f80a7b09000)
/usr/lib/x86_64-linux-gnu/libdouble-conversion.so.1.0:
linux-vdso.so.1 (0x00007ffcb9ee4000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fa819d01000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fa819961000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fa819569000)
/lib64/ld-linux-x86-64.so.2 (0x00007fa81a2a9000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fa819351000)
编辑 3:使用以下终端命令重新安装库后问题解决:
sudo apt install --reinstall libxcb-xinerama0
答案1
问题解决了,只需使用以下终端命令重新安装库 libxcb-xinerama0 即可:
sudo apt install --reinstall libxcb-xinerama0
答案2
sudo apt install --reinstall libdouble-conversion1
我在运行 texstudio 时遇到了相同的初始错误。但是,ldd $(which texstudio | grep not)
报告了libdouble-conversion.so.1 => not found
。
解决方案是重新安装库,按照此建议用户“Manfred”在此处发布关于 LaunchPad 的线程。