docker 内apt-get安装软件都不好使

news2024/12/25 8:53:25

报各种错误

apt-get install --no-install-recommends libboost-all-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  autoconf automake autotools-dev cpp-8 gcc-8 gcc-8-base gfortran-8 ibverbs-providers icu-devtools libboost-atomic-dev libboost-atomic1.71-dev libboost-atomic1.71.0 libboost-chrono-dev libboost-chrono1.71-dev
  libboost-chrono1.71.0 libboost-container-dev libboost-container1.71-dev libboost-container1.71.0 libboost-context-dev libboost-context1.71-dev libboost-context1.71.0 libboost-coroutine-dev
  libboost-coroutine1.71-dev libboost-coroutine1.71.0 libboost-date-time-dev libboost-date-time1.71-dev libboost-date-time1.71.0 libboost-dev libboost-exception-dev libboost-exception1.71-dev
  libboost-fiber-dev libboost-fiber1.71-dev libboost-fiber1.71.0 libboost-filesystem-dev libboost-filesystem1.71-dev libboost-filesystem1.71.0 libboost-graph-dev libboost-graph-parallel-dev
  libboost-graph-parallel1.71-dev libboost-graph-parallel1.71.0 libboost-graph1.71-dev libboost-graph1.71.0 libboost-iostreams-dev libboost-iostreams1.71-dev libboost-iostreams1.71.0 libboost-locale-dev
  libboost-locale1.71-dev libboost-locale1.71.0 libboost-log-dev libboost-log1.71-dev libboost-log1.71.0 libboost-math-dev libboost-math1.71-dev libboost-math1.71.0 libboost-mpi-dev libboost-mpi-python-dev
  libboost-mpi-python1.71-dev libboost-mpi-python1.71.0 libboost-mpi1.71-dev libboost-mpi1.71.0 libboost-numpy-dev libboost-numpy1.71-dev libboost-numpy1.71.0 libboost-program-options-dev
  libboost-program-options1.71-dev libboost-program-options1.71.0 libboost-python-dev libboost-python1.71-dev libboost-python1.71.0 libboost-random-dev libboost-random1.71-dev libboost-random1.71.0
  libboost-regex-dev libboost-regex1.71-dev libboost-regex1.71.0 libboost-serialization-dev libboost-serialization1.71-dev libboost-serialization1.71.0 libboost-stacktrace-dev libboost-stacktrace1.71-dev
  libboost-stacktrace1.71.0 libboost-system-dev libboost-system1.71-dev libboost-system1.71.0 libboost


Get:162 http://archive.ubuntu.com/ubuntu focal/universe amd64 libboost-all-dev amd64 1.71.0.0ubuntu2 [2468 B]                                                                                                     
Fetched 81.1 MB in 48s (1703 kB/s)                                                                                                                                                                                
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/t/tzdata/tzdata_2021e-0ubuntu0.20.04_all.deb  404  Not Found [IP: 185.125.190.36 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/libx/libxml2/libxml2_2.9.10+dfsg-5ubuntu0.20.04.2_amd64.deb  404  Not Found [IP: 91.189.91.82 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/k/krb5/libkrb5support0_1.17-6ubuntu4.1_amd64.deb  404  Not Found [IP: 91.189.91.82 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/k/krb5/libk5crypto3_1.17-6ubuntu4.1_amd64.deb  404  Not Found [IP: 91.189.91.82 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/k/krb5/libkrb5-3_1.17-6ubuntu4.1_amd64.deb  404  Not Found [IP: 91.189.91.82 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/k/krb5/libgssapi-krb5-2_1.17-6ubuntu4.1_amd64.deb  404  Not Found [IP: 91.189.91.82 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/libx/libx11/libx11-data_1.6.9-2ubuntu1.2_all.deb  404  Not Found [IP: 91.189.91.82 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/libx/libx11/libx11-6_1.6.9-2ubuntu1.2_amd64.deb  404  Not Found [IP: 91.189.91.82 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/o/openssh/openssh-client_8.2p1-4ubuntu0.4_amd64.deb  404  Not Found [IP: 91.189.91.82 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-10/libgfortran5_10.3.0-1ubuntu1~20.04_amd64.deb  404  Not Found [IP: 91.189.91.82 80]
E: Failed to fetch https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64/./libxnvctrl0_510.47.03-0ubuntu1_amd64.deb  File has unexpected size (20538 != 20534). Mirror sync in progress? [IP: 125.44.162.14 443]
   Hashes of expected file:
    - SHA512:626db3993ebe3a789cf5ef19a1a3c7393bca3eb24ab17a5740ace35d2221285692b04f26d6514a24537312b82bc96605a6052c8133a15acc2a0cf2d9f12c2e22
    - SHA256:24f5df1f1f4b1d3fa7338ea4f7e15d5f0572f37e0980ba04c37eb78e0a9350b2
    - SHA1:db9c7d697a247eed8670fe25c6082d3a9e8f585a [weak]
    - MD5Sum:3d24bb65fb940f1ab11ec1d7b6f90dcf [weak]
    - Filesize:20534 [weak]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?


apt-get install --no-install-recommends libboost-all-dev^C
apt-get update
Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]                                  
Hit:4 http://archive.ubuntu.com/ubuntu focal InRelease                                                     
Get:1 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64  InRelease [1581 B]
Err:1 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64  InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
Get:5 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]        
Get:6 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [2942 kB]      
Get:7 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
root@2350fceda618:/d# apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libprotobuf-dev is already the newest version (3.0.0-9.1ubuntu1.1).
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:
 libhdf5-serial-dev : Depends: libhdf5-dev but it is not going to be installed
 libopencv-dev : Depends: libopencv-calib3d-dev (= 3.2.0+dfsg-4ubuntu0.1) but it is not going to be installed
                 Depends: libopencv-contrib-dev (= 3.2.0+dfsg-4ubuntu0.1) but it is not going to be installed
                 Depends: libopencv-features2d-dev (= 3.2.0+dfsg-4ubuntu0.1) but it is not going to be installed
                 Depends: libopencv-highgui-dev (= 3.2.0+dfsg-4ubuntu0.1) but it is not going to be installed
                 Depends: libopencv-objdetect-dev (= 3.2.0+dfsg-4ubuntu0.1) but it is not going to be installed
                 Depends: libopencv-stitching-dev (= 3.2.0+dfsg-4ubuntu0.1) but it is not going to be installed
                 Depends: libopencv-superres-dev (= 3.2.0+dfsg-4ubuntu0.1) but it is not going to be installed
                 Depends: libopencv-videoio-dev (= 3.2.0+dfsg-4ubuntu0.1) but it is not going to be installed
                 Depends: libopencv-videostab-dev (= 3.2.0+dfsg-4ubuntu0.1) but it is not going to be installed
                 Depends: libopencv-viz-dev (= 3.2.0+dfsg-4ubuntu0.1) but it is not going to be installed
                 Depends: libopencv3.2-java (= 3.2.0+dfsg-4ubuntu0.1) but it is not going to be installed
                 Depends: libopencv-calib3d3.2 but it is not going to be installed
                 Depends: libopencv-contrib3.2 but it is not going to be installed
                 Depends: libopencv-features2d3.2 but it is not going to be installed
                 Depends: libopencv-highgui3.2 but it is not going to be installed
                 Depends: libopencv-videoio3.2 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Hash Sum mismatch when doing apt-get update and apt-get dist-upgrade

stderr: auto-detected mode as 'legacy'

各种奇葩问题。。。

最后各种百度查看资料,说源的问题,但是我源已经换成国内阿里云清华源等,还是不行啊!
我把我本地ubuntu1804系统上面的source.list拷贝上去还是不行!

# deb cdrom:[Ubuntu 18.04.5 LTS _Bionic Beaver_ - Release amd64 (20200806.1)]/ bionic main restricted
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ bionic main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu/ bionic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu/ bionic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://cn.archive.ubuntu.com/ubuntu/ bionic universe
# deb-src http://cn.archive.ubuntu.com/ubuntu/ bionic universe
deb http://cn.archive.ubuntu.com/ubuntu/ bionic-updates universe
# deb-src http://cn.archive.ubuntu.com/ubuntu/ bionic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://cn.archive.ubuntu.com/ubuntu/ bionic multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ bionic-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://cn.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu bionic partner
# deb-src http://archive.canonical.com/ubuntu bionic partner

deb http://security.ubuntu.com/ubuntu bionic-security main restricted
# deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
# deb-src http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
# deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse
deb [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu bionic stable
# deb-src [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu bionic stable
deb http://security.ubuntu.com/ubuntu xenial-security main
# deb-src http://security.ubuntu.com/ubuntu xenial-security main
deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable
# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable

然后看到focal bionic,
ubuntu1804系统用bionic
ubuntu2004用focal
但是我用uname -a 这个命令显示docker里面是1804系统啊, 因为在docker里面
lsb_release -a这个指令没有安装不好用,装也不好装报错!

这样也可以看: cat /etc/lsb-release

root@2350fceda618:/etc/apt# uname  -a
Linux 2350fceda618 5.4.0-99-generic #112~18.04.1-Ubuntu SMP Thu Feb 3 14:09:57 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

但是没招了,我就把/etc/apt/sources.list里面的bionic改focal,然后
apt-get update
apt-get upgrade
这回果真不一样了,更新了好多东西。然后安装软件也可以了!
把lsb_release安装上,我擦!显示的是ubuntu20.04!!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/920453.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

CRC循环冗余码计算

计算步骤 计算冗余位的位数,即生成多项式的最高阶数 在信息位后补冗余位个数的0 将第二步的结果与生成多项式相除,这里采用的除法叫做模2除法,就是只要部分余数的高位为1,便可商1 之后上下做的减法是异或。 经过第三步不断地计…

【分布式共识】Raft算法 成员变更

对于一个分布式系统,一般都是有多个节点组成集群,比如原理有3个节点,需要增加一个,那么raft这个时候如何保证ledaer的唯一性。 当增加两个节点的时候,就可能造成出现两个分区。从而打破原有的领导者的唯一性。影响集群…

STC12红外接收与NEC解码

文章目录 一、红外通信简介二、红外遥控组成三、NEC协议简介四、红外接收与NEC解码例程五、参考资料 一、红外通信简介 红外通信是一种无线通信技术,利用红外光传输信息。红外光波长介于可见光和微波之间,通常在780纳米至1毫米的范围内。红外通信在许多…

python爬虫10:selenium库

python爬虫10:selenium库 前言 ​ python实现网络爬虫非常简单,只需要掌握一定的基础知识和一定的库使用技巧即可。本系列目标旨在梳理相关知识点,方便以后复习。 申明 ​ 本系列所涉及的代码仅用于个人研究与讨论,并不会对网站产…

一文详解:安防监控视频AI智能分析平台区域入侵/周界报警

区域入侵/周界报警入侵检测技术是TSINGSEE青犀智能分析平台推出的一种视频监控系统,可检测划定区域内是否有可疑人员并且在检测出这样的事件时生成警报。 视频监控/安防监控/视频存储TSINGSEE青犀视频智能分析平台可以在监控范围内划定特定区域,有人员入…

业务系统架构实践总结

我从2015年起至今2022年,在业务平台(结算、订购、资金)、集团财务平台(应收应付、账务核算、财资、财务分析、预算)、本地生活财务平台(发票、结算、预算、核算、稽核)所经历的业务系统研发实践…

记录解决IOS滚动跳转不生效问题

目录 背景 : 解决过程 : 解决方案 : 最终代码 : 背景 : 项目类似于问卷星里面的问卷调查,当你点击提交按钮时, 页面会有弹窗提醒你有哪些题型没回答,点击确认之后, 页…

C++学习-特殊的6个函数

设计一个Per类,类中包含私有成员:姓名,年龄,指针成员身高,体重,在设计一个stu类,类中包含私有成员:成绩,Per类对象p1,设计这两类的构造函数,析构函数和拷贝函…

2000-2020年全国各地级市资本存量测算数据(以2000年为基期)(含原始数据和测算过程)

2000-2020年全国各地级市资本存量测算数据(以2000年为基期)(含原始数据和测算过程) 1、时间:2000-2020年 2、来源:整理自城市统计年鉴、省份统计年鉴以及各市的公报 3、指标:固定资产投资总额…

DevOps团队如何提高Kubernetes性能

今天,Kubernetes仍然是开发人员最需要的容器。Kubernets最初由 Google 工程师开发,作为跨本地、公共云、私有云或混合云托管的首选解决方案享誉全球。 来自Statista的报告显示,公共云中的Kubernetes市场份额在过去一年中上升了近30%。并且在…

Pandas数据清洗和常用函数

数据清洗 数据清洗是对一些没用的数据进行处理的过程。 当数据出现确实、数据格式错误、错误数据或重复数据的情况,如果我们想要分析的更加准确,就要对没用的数据进行处理。 此时我们学习采用菜鸟教程的数据作为案例,如下图所示。 在途中包…

IDEA常用插件之依赖关系查看Maven Helper

文章目录 安装使用 安装 使用 安装完成后点击pom.xml文件,可以查看Maven依赖关系

Linux下jenkins全量迁移到新服务器

文章目录 1、目的2、迁移1)查看jenkins的主目录2)登录要迁出的服务器打包3)找到对应的war包4)登录对应迁入服务,上传war包和打包的jenkins数据等5)在新的服务器解压迁入的数据等,并查看端口是否…

新生录取信息收集

随着高等教育的普及,每年都有大量的学生被大学录取。对于学校来说,新生录取确认和信息收集是一项重要的工作,但也是一项繁琐而耗时的任务。然而,通过合理的规划和利用现代科技手段,我们可以轻松搞定这一工作&#xff0…

代码随想录第28天|93. 复原 IP 地址,78.子集, 90.子集II

93. 复原 IP 地址 回溯三部曲 1.递归参数:startIndex一定是需要的,因为不能重复分割,记录下一层递归分割的起始位置 2.递归终止条件 终止条件和131.分割回文串 (opens new window)情况就不同了,本题明确要求只会分成4段&#x…

系统安全——SpringBoot配置文件加密

😜作 者:是江迪呀✒️本文关键词:SpringBoot、配置文件、明文加密☀️每日 一言:自己动手丰衣足食~ 一、前言 在日常开发中,项目中会有很多配置文件。比如SpringBoot项目核心的数据库配置、Redis账号密码…

Java基于SpringBoot+Vue实现酒店客房管理系统(2.0 版本)

文章目录 一、前言介绍二、系统结构三、系统详细实现3.1用户信息管理3.2会员信息管理3.3客房信息管理3.4收藏客房管理3.5用户入住管理3.6客房清扫管理 四、部分核心代码 博主介绍:✌程序员徐师兄、7年大厂程序员经历。全网粉丝30W,Csdn博客专家、掘金/华为云/阿里云…

openGauss学习笔记-48 openGauss 高级数据管理-函数

文章目录 openGauss学习笔记-48 openGauss 高级数据管理-函数48.1 数学函数48.2 三角函数列表48.3 字符串函数和操作符48.4 类型转换相关函数 openGauss学习笔记-48 openGauss 高级数据管理-函数 openGauss常用的函数如下: 48.1 数学函数 abs(x) 描述:…

网络安全—黑客技术(自学笔记)

一、网络安全应该怎么学? 1.计算机基础需要过关 这一步跟网安关系暂时不大,是进入it行业每个人都必须掌握的基础能力。 计算机网络计算机操作系统算法与数据架构数据库 Tips:不用非要钻研至非常精通,可以与学习其他课程同步进行。 2.渗透技…

百度23Q2财报最新发布:营收利润加速增长,AI+生态战略渐显规模

百度集团-SW(9888.HK)Q2财报已于2023/08/22(美东)盘前发布,二季度百度集团整体收入实现341亿元,同比增长15%;归属百度的净利润(non-GAAP)达到80亿元,同比增长44%。营收和利润双双实现大幅增长,超市场预期。其中,百度核…