我正在尝试在 32 位 Ubuntu 12.04 LTS 上安装 Texmaker 4.1。我从官方网站下载了该文件,并尝试使用以下命令进行安装:
sudo dpkg -i texmaker_ubuntu_12.04_4.1_i386.deb
然而,这会导致一个错误,我无法确定其来源。错误消息如下:
$ sudo dpkg -i texmaker_ubuntu_12.04_4.1_i386.deb
Selecting previously unselected package texmaker.
(Reading database ... 617874 files and directories currently installed.)
Unpacking texmaker (from texmaker_ubuntu_12.04_4.1_i386.deb) ...
dpkg: error processing texmaker_ubuntu_12.04_4.1_i386.deb (--install):
trying to overwrite '/usr/share/texmaker/doc14hu.png', which is also in package texmaker-data 3.4-1~ubuntu12.04.1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Errors were encountered while processing:
texmaker_ubuntu_12.04_4.1_i386.deb
我该怎么做才能解决这个问题?任何帮助和建议都将不胜感激。
答案1
我在 Ubuntu 12.04.5 LTS 64 位,Texmaker 4.3 上遇到了同样的问题:
sudo dpkg --install texmaker_ubuntu_12.04_4.3_amd64.deb
(Reading database ... 382851 files and directories currently installed.)
Unpacking texmaker (from texmaker_ubuntu_12.04_4.3_amd64.deb) ...
dpkg: error processing texmaker_ubuntu_12.04_4.3_amd64.deb (--install):
trying to overwrite '/usr/share/texmaker/usermanual_fr.html', which is also in package texmaker-data 3.2-1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for desktop-file-utils ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for gnome-menus ...
Errors were encountered while processing:
texmaker_ubuntu_12.04_4.3_amd64.deb
我强制覆盖如下...
sudo dpkg --install --force-overwrite texmaker_ubuntu_12.04_4.3_amd64.deb
答案2
我建议您使用以下命令使用 deb 包安装 TeXmaker。
sudo dpkg --install --force-overwrite texmaker_5.0.2_ubuntu_17_10_amd64.deb