我正在尝试使用以下代码LyX 2.3.5.2
进行安装:Ubuntu 20.04 LTS
sudo aptitude install lyx
它抛出了以下消息。有任何提示可以解决问题吗?
sudo aptitude install lyx
The following NEW packages will be installed:
dvisvgm{a} enchant{a} fonts-lmodern{a} libenchant1c2a{a} libptexenc1{a} libteckit0{a} libtexlua53{a} libtexluajit2{a} libzzip-0-13{a}
lmodern{a} texlive-base{a} texlive-binaries{a} texlive-latex-base{a} texlive-plain-generic{a}
The following packages will be upgraded:
lyx{b} lyx-common
The following packages are RECOMMENDED but will NOT be installed:
dvipng texlive-fonts-recommended texlive-latex-extra texlive-latex-recommended texlive-science
2 packages upgraded, 14 newly installed, 0 to remove and 0 not upgraded.
Need to get 78.6 MB/89.3 MB of archives. After unpacking 232 MB will be used.
The following packages have unmet dependencies:
lyx : Depends: libqtcore4 (>= 4:4.8.0) but it is not installable
Depends: libqtgui4 (>= 4:4.8.0) which is a virtual package and is not provided by any available package
Depends: libqt4-svg which is a virtual package and is not provided by any available package
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) lyx [2.3.4.2-2 (focal, now)]
2) lyx-common [2.3.4.2-2 (focal, now)]
答案1
您需要安装 QT4,因为它是 lyx 的依赖项。官方 Ubuntu 20.04 存储库中没有 QT4。您可以通过 Rock Core Team PPA 安装它。
sudo add-apt-repository ppa:rock-core/qt4
sudo apt-get update
sudo apt install qtwebkit