我想将 go lang 包安装在单独的文件夹中,而不是apt-get install
用来安装它。我不热衷于使用apt-get
许多原因,在这里解释太长了。
我做了以下
apt-get download golang-go
然后我就这样解压了
dpkg -x golang-go_2%3a1.6-1ubuntu4_amd64.deb .
我有文件夹usr
,在 3 个文件夹中bin
,lib
以及share
其中的逻辑链接。
我的下一步应该是什么?
我想将 go lang 包安装在单独的文件夹中,而不是apt-get install
用来安装它。我不热衷于使用apt-get
许多原因,在这里解释太长了。
我做了以下
apt-get download golang-go
然后我就这样解压了
dpkg -x golang-go_2%3a1.6-1ubuntu4_amd64.deb .
我有文件夹usr
,在 3 个文件夹中bin
,lib
以及share
其中的逻辑链接。
我的下一步应该是什么?
我正在尝试在 Python3 上安装 paramiko3
pip3 install paramiko
但是,我有这个
Downloading/unpacking cryptography>=1.5 (from paramiko)
Downloading cryptography-2.1.4.tar.gz (441kB): 441kB downloaded
Running setup.py (path:/tmp/pip_build_andykw/cryptography/setup.py) egg_info for package cryptography
error in cryptography setup command: Invalid environment marker: python_version < '3'
Complete output from command python setup.py egg_info:
error in cryptography setup command: Invalid environment marker: python_version < '3'
如您所见,它似乎与cryptography
.
我尝试单独安装软件包,结果相同
Downloading/unpacking cryptography
Downloading cryptography-2.1.4.tar.gz (441kB): 441kB downloaded
Running setup.py (path:/tmp/pip_build_andykw/cryptography/setup.py) egg_info for package cryptography
error in cryptography setup command: Invalid environment marker: python_version < '3'
Complete output from command python setup.py egg_info:
error in cryptography setup command: Invalid environment marker: python_version < '3'
从doc中,它说 Python 2 和 3 支持密码学。然而,这个标记的东西很奇怪。我在互联网上没有找到任何东西。
有任何想法吗?
更新:我的 ubuntu 发行版
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
这是我尝试paramiko
通过 apt-get安装时所拥有的
[andykw:/home/andykw]$ sudo apt install python3-paramiko
[sudo] password for andykw:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python3-paramiko
我已经创建了我在一台 ubuntu 服务器上安装的所有软件包的备份,并尝试将其恢复到新的 ubuntu 服务器。
我做了与这个问题的第一个答案中提到的相同的事情
问题是在运行最后两个命令sudo dpkg --set-selections < ~/Package.list
&之后sudo apt-get dselect-upgrade -y
,我无法安装新软件包。
尝试安装pip3
时,出现此错误
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-pip : Depends: python3-setuptools but it is not going to be installed
Recommends: build-essential but it is not going to be installed
Recommends: python3-dev (>= 3.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我发现的解决方案之一是做一个sudo dpkg --configure -a
但是在运行命令时,这是我的跟踪
[my:/home/my]$ sudo dpkg --configure -a
Setting up ppp (2.4.5-5.1ubuntu2.2) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
insserv: Service gdm has to be enabled to start service pppd-dns
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package ppp (--configure):
subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of pppconfig:
pppconfig depends on ppp (>= 2.3.7); however:
Package ppp is not configured yet.
dpkg: error processing package pppconfig (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of pppoeconf:
pppoeconf depends on ppp (>= 2.4.2+20040428-2) | pppoe (>= 3.0); however:
Package ppp is not configured yet.
Package pppoe is not installed.
pppoeconf depends on ppp (>= 2.4.1.uus2-4); however:
Package ppp is not configured yet.
dpkg: error processing package pppoeconf (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
ppp
pppconfig
pppoeconf
我不确定下一步该怎么做。