在Ubuntu 16.04上安装割炬时发生了依赖性问题

时间:2019-03-27 08:13:15

标签: python installation ubuntu-16.04 torch

我正在Ubuntu 16.04服务器上建立模型。我根据官方网页(http://torch.ch/docs/getting-started.html)下载并安装了割炬,但是当我运行命令bash install-deps时,发生了依赖性问题。

(py3) root@boltzmann:/home/ubuntu/torch# bash install-deps
Hit:1 http://mirrors.aliyun.com/ubuntu xenial InRelease                                                                                       
Hit:2 http://mirrors.aliyun.com/ubuntu xenial-updates InRelease                                                                                   
Hit:3 http://mirrors.aliyun.com/ubuntu xenial-backports InRelease                                                                                 
Hit:4 http://mirrors.aliyun.com/ubuntu xenial-security InRelease                                                                                  
Get:5 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]                                                                       
Get:6 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]                                                        
Hit:7 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu bionic InRelease                           
Hit:8 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease                                         
Get:9 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [558 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [746 kB]                                                           
Fetched 1,556 kB in 19s (78.5 kB/s)                                                                                                               
Reading package lists... Done
Updated successfully.
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:
 python-software-properties : Depends: python-apt (>= 0.6.20ubuntu16) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我试图通过使用google解决此问题,发现两个问题与我的相似,one使用以下命令,

sudo apt-get clean; apt-get update --fix-missing

the other是将软件包名从python-software-properties更改为{{1}文件中第178行和261行的python3-software-properties,显然,它不再起作用。 / p>

install-deps

我尝试通过(py3) root@boltzmann:/home/ubuntu/torch# bash install-deps Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] Hit:2 http://mirrors.aliyun.com/ubuntu xenial InRelease Hit:3 http://mirrors.aliyun.com/ubuntu xenial-updates InRelease Hit:4 http://mirrors.aliyun.com/ubuntu xenial-backports InRelease Hit:5 http://mirrors.aliyun.com/ubuntu xenial-security InRelease Hit:6 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu bionic InRelease Hit:7 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease Get:8 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB] Get:9 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] Fetched 252 kB in 17s (14.3 kB/s) Reading package lists... Done Updated successfully. 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: python3-software-properties : Depends: gpg but it is not going to be installed E: Unable to correct problems, you have held broken packages. 安装gpd,但仍然

apt-get

这不是始终安装缺少的依赖项的方法,因此,希望我能在您的帮助下找到解决方案。谢谢。

0 个答案:

没有答案