Ubuntu 更新后未找到 pdfcrop

Ubuntu 更新后未找到 pdfcrop

我已pdfcrop在 Ubuntu 19.04 上安装,并且运行良好。但是,将其更新到 19.10 后,我无法再使用它。它返回以下错误:

pdfcrop: command not found

如果我尝试从旧源安装它,则会出现以下错误:

sudo apt-get install texlive-extra-utils

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package texlive-extra-utils is not available, but is referred to by 
another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
texlive-base

安装时texlive-base错误仍然存​​在。

这是我运行时得到的结果apt-get update

Hit:1 http://it.archive.ubuntu.com/ubuntu eoan InRelease Hit:2
http://archive.ubuntu.com/ubuntu eoan InRelease                       
Hit:3 http://archive.canonical.com/ubuntu eoan InRelease              
Get:4 http://archive.ubuntu.com/ubuntu eoan-updates InRelease [97,5
kB]      Get:5 http://security.ubuntu.com/ubuntu eoan-security
InRelease [97,5 kB] Fetched 195 kB in 1s (256 kB/s)                   
Reading package lists... Done

我是否应该添加其他路径才能成功安装它?

答案1

确保您的/etc/apt/sources.list文件如下所示:

deb http://ua.archive.ubuntu.com/ubuntu eoan main restricted
deb http://ua.archive.ubuntu.com/ubuntu eoan-updates main restricted
deb http://ua.archive.ubuntu.com/ubuntu eoan universe
deb http://ua.archive.ubuntu.com/ubuntu eoan-updates universe
deb http://ua.archive.ubuntu.com/ubuntu eoan multiverse
deb http://ua.archive.ubuntu.com/ubuntu eoan-updates multiverse
deb http://ua.archive.ubuntu.com/ubuntu eoan-backports main restricted universe multiverse
deb http://ua.archive.ubuntu.com/ubuntu eoan-security main restricted
deb http://ua.archive.ubuntu.com/ubuntu eoan-security universe
deb http://ua.archive.ubuntu.com/ubuntu eoan-security multiverse

sudo apt install texlive-extra-utils我在 19.10 上使用命令时没有遇到问题。

源列表

相关内容