-
问题: 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
-
已经通过apt-get install *ssl* 后执行configure操作 ./configure --prefix=/usr/local/nginx --with-http_ssl_module,依然提示如下错误。:./configure: error: SSL modules require the OpenSSL library.
-
使用前提容器环境具有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>')
-
今天在使用云服务器安装东西的时候,更新软件包,突然发现失败了,出现了以下情况:苦苦寻找原因,网上各种答案,都没能成功解决问题,后来把出错的英语翻译了一下,大概的意思就是,获取包返回失败,后来想想是不是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
-
【错误信息】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
上滑加载中
推荐直播
-
DTT年度收官盛典:华为开发者空间大咖汇,共探云端开发创新
2025/01/08 周三 16:30-18:00
Yawei 华为云开发工具和效率首席专家 Edwin 华为开发者空间产品总监
数字化转型进程持续加速,驱动着技术革新发展,华为开发者空间如何巧妙整合鸿蒙、昇腾、鲲鹏等核心资源,打破平台间的壁垒,实现跨平台协同?在科技迅猛发展的今天,开发者们如何迅速把握机遇,实现高效、创新的技术突破?DTT 年度收官盛典,将与大家共同探索华为开发者空间的创新奥秘。
去报名 -
GaussDB应用实战:手把手带你写SQL
2025/01/09 周四 16:00-18:00
Steven 华为云学堂技术讲师
本期直播将围绕数据库中常用的数据类型、数据库对象、系统函数及操作符等内容展开介绍,帮助初学者掌握SQL入门级的基础语法。同时在线手把手教你写好SQL。
去报名
热门标签