ubuntu offline installation python environment

background##

When deploying jumpserver, after adding assets, asset information cannot be pushed normally. After reading the error message, I found that there is no python environment, and servers without python environment are offline environments and cannot be installed using apt, so the python environment can only be installed offline.

installation##

Installing the python environment is very simple. We can check the relevant version and dependencies on a machine where python has been installed, and then find the corresponding deb package online.

Query which dependencies of python

sudo apt-cache depends python

Here are some dependency packages of python, just unzip and use: python dependency

Install dependencies in order

sudo dpkg -i libpython2.7-minimal_2.7.12-1ubuntu0_16.04.4_amd64.deb 
sudo dpkg -i python2.7-minimal_2.7.12-1ubuntu0_16.04.4_amd64.deb 
sudo dpkg -i python-minimal_2.7.12-1_16.04_amd64.deb 
sudo dpkg -i libpython2.7-stdlib_2.7.12-1ubuntu0_16.04.4_amd64.deb 
sudo dpkg -i python2.7_2.7.12-1ubuntu0_16.04.4_amd64.deb 
sudo dpkg -i libpython-stdlib_2.7.12-1_16.04_amd64.deb 
sudo dpkg -i python_2.7.12-1_16.04_amd64.deb

The best way is to find a server that can go out of the network and install python normally without querying the dependencies of python. You will see that during the installation process, some dependencies will be listed and the order of installation dependencies will also be listed.

Recommended Posts

ubuntu offline installation python environment
Ubuntu offline installation package
Python virtual environment: Ubuntu16.04
ubuntu sets python2.5 environment variables
ubuntu view python installation path
ubuntu build python development environment
Install Python virtual environment on Ubuntu 18.04
Ubuntu 19.1 installation and configuration Chinese environment
Ubuntu16 upgrade Python3
UBUNTU 16.04 installation diary
ubuntu18.04 install python2
Relearn ubuntu --python3
Python2.7 [Installation Tutorial]
ubuntu 1804 installation details
Python - centos6 installation
Python Anaconda installation
Ubuntu system installation
Ubuntu installation record
Build a python development environment under Ubuntu
ubuntu18.04 install python
ubuntu 18.04 installation (UEFI+GBT)
ubuntu installation error
ubuntu16.04 upgrade python2
Ubuntu20.04 install Python3 virtual environment tutorial detailed explanation
How to install python in ubuntu server environment
Install Python3 environment in a brand new Ubuntu
Installation and use of SSH in Ubuntu environment
Ubuntu18.04 switch Python version
Manual for Ubuntu Installation
ubuntu16.04 deploy GPU environment
Install python3.6 under Ubuntu 16.04
ubuntu configuration python, Red
Ubuntu16.04 installation partition settings
ubuntu redis php installation
Ubuntu16.04 switch python version
Python MySQLd under Ubuntu
Ubuntu configuration development environment
Centos source installation Python3
lamp (centos7) installation lamp environment
Ubuntu introduction and installation
Ubuntu make offline source
Ubuntu development environment configuration
ubuntu nice font installation
Install Python3 on Ubuntu 14.04
LNMP installation under Ubuntu
Ubuntu Touch environment setup
Install Python3 on Ubuntu 16.04
Ubuntu18.10 configure Java environment
Ubuntu CEPH quick installation
foreman ubuntu16 quick installation
Ubuntu 17.10 installation toss record
Ubuntu dual system installation
ubuntu environment deployment project
Install Python3.7 on Ubuntu
Installation and use of GDAL in Python under Ubuntu
Installation and simple practice of MySQL in ubuntu environment (1)
How to create a Python virtual environment in Ubuntu 14.04
Django&MySQL environment deployment under Ubuntu 14.04
Ubuntu install the latest Python 3.
Install python environment under Linux
ubuntu18.04 compile and install python3.8