• [技术干货] 【转】linux apt-get install 报错 E: 无法定位软件包
    问题: apt-get install *** 一直出现 E: 无法定位软件包解决办法:vi /etc/apt/sources.list换apt软件源(例如清华大学镜像源)将第二行加 # 注释 后面加入并保存deb https://mirrors.tuna.tsinghua.edu.cn/deepin/ stable main contrib non-freedeb https://mirrors.tuna.tsinghua.edu.cn/deepin/ trusty main universe non-free我安装的系统是deepin所以为/deepin/,可以打开网页自己根据系统挑选文件夹stable main contrib non-free 这部分是release文件的文件夹更新sudo apt-get updatesudo apt-get upgrade转自:https://blog.csdn.net/qq_45555187/article/details/106532641?utm_medium=distribute.pc_relevant.none-task-blog-title-11&spm=1001.2101.3001.4242
  • [问题求助] 【UOS 20系统】【安装nginx】提示缺少openssl包,apt-get install 找不到正确的安装包
    已经通过apt-get install *ssl* 后执行configure操作 ./configure --prefix=/usr/local/nginx --with-http_ssl_module,依然提示如下错误。:./configure: error: SSL modules require the OpenSSL library.
  • [问题求助] 开发板联网能ping通百度,但无法apt-get update,更新源失败
    求助:1.usb连接开发板和服务器,连接成功2.开发板通过网线连接上网,可以ping通百度,但无法apt-get update,更新源失败3.wget www.baidu.com 同样无法成功大佬 救命~
  • [教程] 训练作业自定义镜像使用apt-get
    使用前提容器环境具有root权限北京一和北京四可以配置apt源动态安装linux 工具静态配置方式:/etc/apt/sources.list文件内容需要进行如下配置deb http://repo.myhuaweicloud.com/ubuntu/ xenial main multiverse restricted universedeb http://repo.myhuaweicloud.com/ubuntu/ xenial-backports main multiverse restricted universedeb http://repo.myhuaweicloud.com/ubuntu/ xenial-proposed main multiverse restricted universedeb http://repo.myhuaweicloud.com/ubuntu/ xenial-security main multiverse restricted universedeb http://repo.myhuaweicloud.com/ubuntu/ xenial-updates main multiverse restricted universedeb-src http://repo.myhuaweicloud.com/ubuntu/ xenial main multiverse restricted universedeb-src http://repo.myhuaweicloud.com/ubuntu/ xenial-backports main multiverse restricted universedeb-src http://repo.myhuaweicloud.com/ubuntu/ xenial-proposed main multiverse restricted universedeb-src http://repo.myhuaweicloud.com/ubuntu/ xenial-security main multiverse restricted universedeb-src http://repo.myhuaweicloud.com/ubuntu/ xenial-updates main multiverse restricted universe动态配置方式deb http://repo.myhuaweicloud.com/ubuntu/ xenial main multiverse restricted universedeb http://repo.myhuaweicloud.com/ubuntu/ xenial-backports main multiverse restricted universedeb http://repo.myhuaweicloud.com/ubuntu/ xenial-proposed main multiverse restricted universedeb http://repo.myhuaweicloud.com/ubuntu/ xenial-security main multiverse restricted universedeb http://repo.myhuaweicloud.com/ubuntu/ xenial-updates main multiverse restricted universedeb-src http://repo.myhuaweicloud.com/ubuntu/ xenial main multiverse restricted universedeb-src http://repo.myhuaweicloud.com/ubuntu/ xenial-backports main multiverse restricted universedeb-src http://repo.myhuaweicloud.com/ubuntu/ xenial-proposed main multiverse restricted universedeb-src http://repo.myhuaweicloud.com/ubuntu/ xenial-security main multiverse restricted universedeb-src http://repo.myhuaweicloud.com/ubuntu/ xenial-updates main multiverse restricted universe将以上内容放到sources.list中,上传到obs上,将文件放到启动目录中,这时代码会在启动时下载到训练环境中,在python代码中增加以下逻辑:os.system('sudo rm /etc/apt/sources.list; sudo mv /home/work/user-job-dir/<YOUR-CODE-DIR>/sources.list /etc/apt/sources.list; sudo apt-get update; sudo apt-get install <YOUR-REQUIRED-SOFTWARE>')
  • 云服务器使用sudo apt-get update 失败的原因及解决方法(unubtu下)
    今天在使用云服务器安装东西的时候,更新软件包,突然发现失败了,出现了以下情况:苦苦寻找原因,网上各种答案,都没能成功解决问题,后来把出错的英语翻译了一下,大概的意思就是,获取包返回失败,后来想想是不是DNS的问题,然后重点来了我输入:cat /etc/resolv.confroot@whcckj:~# cat /etc/resolv.conf# This file is managed by man:systemd-resolved(8). Do not edit.## This is a dynamic resolv.conf file for connecting local clients to the# internal DNS stub resolver of systemd-resolved. This file lists all# configured search domains.## Run "systemd-resolve --status" to see details about the uplink DNS servers# currently in use.## Third party programs must not access this file directly, but only through the# symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,# replace this symlink by a static file or a different symlink.## See man:systemd-resolved.service(8) for details about the supported modes of# operation for /etc/resolv.conf.nameserver 127.0.0.53search openstacklocal标蓝的地方就是问题所在,于是我们修改这个标蓝的地方vi /etc/resolv.conf改成 namesever 8.8.8.8 保存退出(先按下ESC,在输入:wq,回车搞定),然后使用sudo apt-get update 
  • [问题求助] Ubutu apt-get update失败的处理方法(两个常见问题)
    【错误信息】Aborted (core dumped)Reading package lists… DoneE: Problem executing scripts APT::Update::Post-Invoke-Success ‘if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh > /dev/null; fi’E: Sub-process returned an error code【处理方法】sudo apt-get purge libappstream3【错误信息】E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?【处理方法】sudo rm /var/cache/apt/archives/locksudo rm /var/lib/dpkg/lock
总条数:22 到第
上滑加载中