我在执行此命令时遇到问题 sudo apt-get install tcl8.5-dev tk8.5-dev

我在执行此命令时遇到问题 sudo apt-get install tcl8.5-dev tk8.5-dev

我在执行此命令时遇到问题

sudo apt-get install tcl8.5-dev tk8.5-dev

我得到了这个:

fawaz@fawaz-Lenovo-B590:~$ sudo apt-get install tcl8.5-dev tk8.5-dev
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:
 tcl8.5-dev : Depends: tcl8.5 (= 8.5.11-1ubuntu1) but it is not going to be installed
 tk8.5-dev : Depends: libx11-dev but it is not going to be installed
             Depends: libxss-dev but it is not going to be installed
             Depends: libxext-dev but it is not going to be installed
             Depends: libxft-dev but it is not going to be installed
             Depends: tk8.5 (= 8.5.11-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
fawaz@fawaz-Lenovo-B590:~$ 

请帮帮我

答案1

在终端中输入以下命令:

sudo apt-get 更新
sudo apt-get 自动清理
sudo apt-get clean
sudo apt-get 自动删除

然后输入:

sudo apt-get 安装 tcl8.5 libx11-dev libxss-dev libxext-dev libxft-dev tk8.5.11-1

现在尝试安装tcl8.5-devtk8.5-dev再次:

sudo apt-get 安装 tcl8.5-dev tk8.5-dev

相关内容