python 安裝虛擬環境virtualenv

1.sudo apt install virtualenvgit

 安裝失敗github

2.sudo apt-get updateubuntu

 更新失敗 提示:安全

E: 倉庫 「http://mirrors.aliyun.com/ubuntu artful Release」 再也不含有 Release 文件。
N: 沒法安全地用該源進行更新,因此默認禁用該源。
N: 參見 apt-secure(8) 手冊以瞭解倉庫建立和用戶配置方面的細節。
E: 倉庫 「http://mirrors.aliyun.com/ubuntu artful-updates Release」 再也不含有 Release 文件。
N: 沒法安全地用該源進行更新,因此默認禁用該源。
N: 參見 apt-secure(8) 手冊以瞭解倉庫建立和用戶配置方面的細節。
E: 倉庫 「http://mirrors.aliyun.com/ubuntu artful-backports Release」 再也不含有 Release 文件。
N: 沒法安全地用該源進行更新,因此默認禁用該源。
N: 參見 apt-secure(8) 手冊以瞭解倉庫建立和用戶配置方面的細節。
E: 倉庫 「http://mirrors.aliyun.com/ubuntu artful-security Release」 再也不含有 Release 文件。
N: 沒法安全地用該源進行更新,因此默認禁用該源。
N: 參見 apt-secure(8) 手冊以瞭解倉庫建立和用戶配置方面的細節。bash

3.解決sudo apt-get update的問題測試

參考https://blog.csdn.net/github_35160620/article/details/52115542網站

文件留備份ui

sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup

從新編寫文件  /etc/apt/sources.list 文件 裏面存放的是 Linux系統須要的軟件源的網站。spa

sudo gedit /etc/apt/sources.list
將下面代碼寫到文件中
deb http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
##測試版源
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse
# 源碼
deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
##測試版源
deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse
4.再sudo apt-get update5.再sudo apt install virtualenv大體應該差很少就安裝成功了-------未完待續----------
相關文章
相關標籤/搜索