我曾尝试在 KDE Neon 上安装 Texmaker。在“发现”中显示:依赖项解析失败。在“终端”中,我尝试过以下操作:
mangodile@Mangodile:~$ sudo apt-get install texmaker
Reading package lists... Done
Building dependency tree
Reading state information... Done
Starting pkgProblemResolver with broken count: 1
Starting 2 pkgProblemResolver with broken count: 1
Investigating (0) texmaker:amd64 < none -> 5.0.2-1build2 @un puN Ib >
Broken texmaker:amd64 Depends on qtbase-abi-5-9-5:amd64 < none @un H >
Considering libqt5core5a:amd64 2948 as a solution to texmaker:amd64 9999
Broken texmaker:amd64 Depends on texmaker-data:amd64 < none | 5.0.2-1build2 @un uH > (= 5.0.2-1build2)
Considering texmaker-data:amd64 0 as a solution to texmaker:amd64 9999
Re-Instated texmaker-data:amd64
Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
texmaker : Depends: qtbase-abi-5-9-5
Recommends: psutils
Recommends: latex-beamer but it is not installable
Recommends: texlive-latex-extra but it is not going to be installed
Recommends: texlive-lang-english but it is not going to be installed
Recommends: asymptote but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
mangodile@Mangodile:~$ sudo apt-get install qtbase-abi-5-9-5
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package qtbase-abi-5-9-5 is a virtual package provided by:
libqt5core5a 5.9.5+dfsg-0ubuntu1 [Not candidate version]
E: Package 'qtbase-abi-5-9-5' has no installation candidate
mangodile@Mangodile:~$ sudo apt-get install libqt5core5a
Reading package lists... Done
Building dependency tree
Reading state information... Done
libqt5core5a is already the newest version (5.11.2+dfsg- 0xneon+18.04+bionic+build46).
libqt5core5a set to manually installed.
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
The following packages were automatically installed and are no longer required:
discover discover-data libdiscover2 libusb-0.1-4
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
我还必须指出,我是 Linux 新手。
编辑:我忘了尝试在 Texmaker 官方网站上下载它。同样的问题。
答案1
遇到了类似的问题,debian 包和 KDE Neon 有问题,您需要编辑它:
- 在 texmaker 网站上下载 .deb 包
- 使用以下方法解压缩
ar -x tex_$YOUR_VERSION$.deb
(你需要这样做binutils
) - 解压缩
control
文件:tar xf control.tar.xz
- 编辑它并删除
qtbase-abi-5-9-5
依赖项 - 重新压缩
content
文件:tar cfJ control.tar.xz control
- 重建 .deb 文件:
ar rcs $Package_name$ debian-binary control.tar.xz data.tar.xz
- 使用 dpkg 安装