ubuntu-18.04

Unable to resolve 'us.archive.ubuntu.com' when using 'update' command in Ubuntu

喜欢而已 提交于 2020-08-26 10:12:11
问题 When I use the command "sudo apt-get update" I get the following errors: Err:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease Could not resolve 'us.archive.ubuntu.com' Err:2 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease Could not resolve 'us.archive.ubuntu.com' Err:3 http://security.ubuntu.com/ubuntu bionic-security InRelease Could not resolve 'security.ubuntu.com' Err:4 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease Could not resolve 'us.archive.ubuntu

Why can't I run “manage.py runserver” when I install Django 2.2?

感情迁移 提交于 2020-07-23 07:18:04
问题 I can't install Django 2.2 with pip: (django-2.2-env) fadedbee@server:/www/myproject.example.com$ pip install django==2.2 DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support ERROR: Could not find a version that

Why can't I run “manage.py runserver” when I install Django 2.2?

与世无争的帅哥 提交于 2020-07-23 07:16:18
问题 I can't install Django 2.2 with pip: (django-2.2-env) fadedbee@server:/www/myproject.example.com$ pip install django==2.2 DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support ERROR: Could not find a version that

Why can't I run “manage.py runserver” when I install Django 2.2?

纵饮孤独 提交于 2020-07-23 07:15:10
问题 I can't install Django 2.2 with pip: (django-2.2-env) fadedbee@server:/www/myproject.example.com$ pip install django==2.2 DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support ERROR: Could not find a version that

How to fix 'ModuleNotFoundError: No module named 'apt_pkg'?

▼魔方 西西 提交于 2020-07-18 04:46:57
问题 I'm running code sudo apt update and fetch error ModuleNotFoundError: No module named 'apt_pkg'. Please, help me solve it. sudo apt update Hit:20 http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu bionic InRelease Fetched 93,3 kB in 2s (42,4 kB/s) Traceback (most recent call last): File "/usr/lib/cnf-update-db", line 8, in <module> from CommandNotFound.db.creator import DbCreator File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 11, in <module> import apt_pkg

How to fix 'ModuleNotFoundError: No module named 'apt_pkg'?

给你一囗甜甜゛ 提交于 2020-07-18 04:46:11
问题 I'm running code sudo apt update and fetch error ModuleNotFoundError: No module named 'apt_pkg'. Please, help me solve it. sudo apt update Hit:20 http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu bionic InRelease Fetched 93,3 kB in 2s (42,4 kB/s) Traceback (most recent call last): File "/usr/lib/cnf-update-db", line 8, in <module> from CommandNotFound.db.creator import DbCreator File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 11, in <module> import apt_pkg

How to fix 'ModuleNotFoundError: No module named 'apt_pkg'?

核能气质少年 提交于 2020-07-18 04:46:10
问题 I'm running code sudo apt update and fetch error ModuleNotFoundError: No module named 'apt_pkg'. Please, help me solve it. sudo apt update Hit:20 http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu bionic InRelease Fetched 93,3 kB in 2s (42,4 kB/s) Traceback (most recent call last): File "/usr/lib/cnf-update-db", line 8, in <module> from CommandNotFound.db.creator import DbCreator File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 11, in <module> import apt_pkg