无法在 ubuntu 16.04 中安装 Kile(LATEX)

无法在 ubuntu 16.04 中安装 Kile(LATEX)

我正在尝试使用此命令安装 kile

sudo apt-get install kile

显示错误

Reading package lists... Done
Building dependency tree       
Reading state information... 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:
 kile : Depends: kde-runtime (> 4:4.10) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

然后我尝试了这个命令来添加 PPA

sudo add-apt-repository ppa:kile/stable

显示错误

sudo: add-apt-repository: command not found"

为了消除这个问题,我执行了

sudo apt-get install software-properties-common python-software-properties

然后它再次显示错误消息

Package software-properties-common 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

E: Package 'software-properties-common' has no installation candidate

请帮我解决这个问题。

答案1

我是从实时预览 ppa:kile/livepreview 安装的,不过步骤应该相同。

  • 添加存储库。

    sudo add-apt-repository ppa:kile/livepreview
    sudo apt-get update
    
  • 首先安装 okular。

    sudo apt-get install okular
    
  • 然后安装 kile。

    sudo apt-get install kile
    
  • 如果仍然出现有关缺少依赖项和包损坏的错误,请使用 apt-get 中的 fix 命令。

    sudo apt-get install -f
    

相关内容