博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
2021-05-14 技术记录
阅读量:2164 次
发布时间:2019-05-01

本文共 3809 字,大约阅读时间需要 12 分钟。

bash: sudo: command not found

执行:

apt-get install sudo

 

 

2.报错: 

E: Unable to locate package libjasper-dev
sudo add-apt-repository "deb http://security.ubuntu.com/ubuntu xenial-security main"

但报错:

root@dd1466f1fbbc:/home# sudo add-apt-repository "deb http://security.ubuntu.com/ubuntu xenial-security main"sudo: add-apt-repository: command not found

通过执行下面两个命令 解决:

sudo apt-get install software-properties-commonsudo apt-get update

 -----

执行 apt  update 时  报错。

root@dd1466f1fbbc:/home/opencv/build# apt updateIgn:1 http://archive.canonical.com lucid InReleaseHit:2 http://security.ubuntu.com/ubuntu xenial-security InReleaseErr:3 http://archive.canonical.com lucid Release  404  Not Found [IP: 91.189.92.191 80]Ign:4 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu1804/x86_64  InReleaseIgn:5 https://developer.download.nvidia.cn/compute/machine-learning/repos/ubuntu1804/x86_64  InReleaseHit:6 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu1804/x86_64  ReleaseHit:8 https://developer.download.nvidia.cn/compute/machine-learning/repos/ubuntu1804/x86_64  ReleaseReading package lists... DoneE: The repository 'http://archive.canonical.com lucid Release' does not have a Release file.N: Updating from such a repository can't be done securely, and is therefore disabled by default.N: See apt-secure(8) manpage for repository creation and user configuration details.

发现时 sources.list  内容发生变化 ;更换为清华源后  ,执行 apt update 可以

执行更新:

root@dd1466f1fbbc:/etc/apt# vim sources.listroot@dd1466f1fbbc:/etc/apt# root@dd1466f1fbbc:/etc/apt# vim sources.listroot@dd1466f1fbbc:/etc/apt# root@dd1466f1fbbc:/etc/apt# apt updateGet:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic InRelease [242 kB]Get:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-updates InRelease [88.7 kB]Get:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-backports InRelease [74.6 kB]Get:4 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-security InRelease [88.7 kB]Get:5 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic/universe amd64 Packages [11.3 MB]Ign:6 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu1804/x86_64  InReleaseIgn:7 https://developer.download.nvidia.cn/compute/machine-learning/repos/ubuntu1804/x86_64  InReleaseHit:8 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu1804/x86_64  ReleaseHit:9 https://developer.download.nvidia.cn/compute/machine-learning/repos/ubuntu1804/x86_64  ReleaseGet:12 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic/restricted amd64 Packages [13.5 kB]Get:13 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic/main amd64 Packages [1344 kB]Get:14 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic/multiverse amd64 Packages [186 kB]Get:15 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-updates/main amd64 Packages [2582 kB]Get:16 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-updates/universe amd64 Packages [2183 kB]Get:17 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-updates/multiverse amd64 Packages [31.6 kB]Get:18 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-updates/restricted amd64 Packages [452 kB]Get:19 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-backports/universe amd64 Packages [11.4 kB]Get:20 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-backports/main amd64 Packages [11.3 kB]Get:21 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-security/main amd64 Packages [2150 kB]Get:22 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-security/universe amd64 Packages [1411 kB]Get:23 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-security/multiverse amd64 Packages [24.7 kB]Get:24 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-security/restricted amd64 Packages [423 kB]Fetched 22.7 MB in 11s (2054 kB/s)Reading package lists... DoneBuilding dependency treeReading state information... Done

 

 

转载地址:http://gzczb.baihongyu.com/

你可能感兴趣的文章
Logistic Regression 为什么用极大似然函数
查看>>
SVM 的核函数选择和调参
查看>>
LightGBM 如何调参
查看>>
用 TensorFlow.js 在浏览器中训练神经网络
查看>>
cs230 深度学习 Lecture 2 编程作业: Logistic Regression with a Neural Network mindset
查看>>
梯度消失问题与如何选择激活函数
查看>>
为什么需要 Mini-batch 梯度下降,及 TensorFlow 应用举例
查看>>
为什么在优化算法中使用指数加权平均
查看>>
什么是 Q-learning
查看>>
用一个小游戏入门深度强化学习
查看>>
如何应用 BERT :Bidirectional Encoder Representations from Transformers
查看>>
5 分钟入门 Google 最强NLP模型:BERT
查看>>
强化学习第1课:像学自行车一样的强化学习
查看>>
强化学习第2课:强化学习,监督式学习,非监督式学习的区别
查看>>
强化学习第3课:有些问题就像个赌局
查看>>
强化学习第4课:这些都可以抽象为一个决策过程
查看>>
强化学习第5课:什么是马尔科夫决策过程
查看>>
强化学习第6课:什么是 Crossentropy 方法
查看>>
强化学习第7课:交叉熵方法的一些局限性
查看>>
强化学习 8: approximate reinforcement learning
查看>>