场景

在执行:

apt-get update时提示:

实现

这是因为原有的数据源不好使了,换源。

原来使用的是清华大学的数据源。

具体更换数据源的方式参照:

https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/97699304

现在将其更换为阿里云的数据源,注意这里是UbuntuServer 16.04 LTS版本的数据源。

deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse

更换之后,输入:

apt-get update

UbuntuServer16.04LTS中提示:The method driver /usr/lib/apt/methods/https could not be found相关推荐

  1. UbuntuServer16.04LTS中安装Mysql并配置远程访问

    场景 Linux-安装 Ubuntu Server 16.04 X64(图文教程详细版): https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/deta ...

  2. Linux系统中提示/usr/bin/ld: cannot find -lxxx错误的通用解决方法

    Linux系统中提示/usr/bin/ld: cannot find -lxxx错误的通用解决方法 参考文章: (1)Linux系统中提示/usr/bin/ld: cannot find -lxxx错 ...

  3. Linux系统中提示/usr/bin/ld: cannot find -lxxx错误的解决方法

    报错说明 /usr/bin/ld: cannot find -lxxx 这些讯息会随着编译不同类型的source code 而有不同的结果出来如: /usr/bin/ld: cannot find - ...

  4. Junit单元测试时提示:Method should have no parameters

    场景 Junit中运行单元测试时提示: Method XXX should have no parameters 如图: 代码如下: package com.ws.test.common;import ...

  5. linux 安装程序丢失链接动态库,Linux安装软件过程中提示缺少动态链接库.so的解决方法...

    Linux在安装软件的时候有时会出现错误,提示缺少动态链接库.so,该问题是由什么原因导致的呢? 情况分析: 1.缺少动态连接库.so-cannot open shared object file:N ...

  6. 便利贴--33{uniapp中提示音的处理,动态输出}

    便利贴--33{uniapp中提示音的处理,动态输出} 用 源 用 Audio: new myAudio({uni: uni}), //语音控制 controlAudio(state, data) { ...

  7. IDEA中提示:Warning:java: 源值1.5已过时, 将在未来所有发行版中删除

    问题描述: 运行Java Web项目时,IDEA中提示:Warning:java: 源值1.5已过时, 将在未来所有发行版中删除 解决方法: 1. 打开[File]-[Project Structur ...

  8. PHP 中提示undefined index如何解决(多种方法)

    PHP 中提示undefined index如何解决(多种方法) 参考文章: (1)PHP 中提示undefined index如何解决(多种方法) (2)https://www.cnblogs.co ...

  9. 如何在bash脚本中提示用户进行确认? [重复]

    本文翻译自:How do I prompt a user for confirmation in bash script? [duplicate] This question already has ...

最新文章

  1. WordPress主题制作函数
  2. 拯救乳房:乳腺癌AI诊断系统
  3. Oracle第三课之PLSQL
  4. 【C++ grammar】抽象、封装与this指针
  5. 浏览器关闭 session并不会被干掉
  6. 为学校食堂提供“自提柜”,爽提获650万元Pre-A轮融资
  7. 使用VGG16网络结构训练自己的图像分类模型
  8. html 城市选择 按字母排序吗,微信小程序实现按字母排列选择城市功能
  9. 计算机图形学【GAMES-101】12、相机(视场、曝光、光圈(F-Stop)、薄棱镜近似、CoC、景深)
  10. 简单操作stm32f10xIO端口配置
  11. 日期函数DATEDIFF() 计算日期之差
  12. 计算机对团队合作的重要性,市计算机:团队协作,共同奋斗
  13. 查找Windows和MacBook序列号
  14. Python入门教程:什么是网络爬虫
  15. idea 解决ava.lang.NoClassDefFoundError错误
  16. Linux第七章服务器硬件及RAID配置实战
  17. 【源码】声明32位和64位Access、Excel等VBA兼容的API函数的方法
  18. 【经营智慧】004.做一个善于发挥自己才智的人
  19. ERP软件选型经常遇到的四大情况
  20. wpf修改theme中的样式_WPF Mahapps.Metro 设置主题样式

热门文章

  1. Java中sc在哪里关闭_node 中设置的session,在javasc 怎么获取
  2. JUC系列(九)| ThreadPool 线程池
  3. 将python编程为c_使用Cython为Python编写更快的C扩展
  4. python电影推荐算法_电影推荐系统python实现
  5. 代码签名证书Authenticode签名伪造——PE文件的签名伪造与签名验证劫持
  6. 修改oracle日志大小,修改Oracle重做日志文件大小
  7. PHP空指针,PHP 5.3.7之前版本空指针引用拒绝服务漏洞
  8. 赣州光华职业技术学校计算机专业,赣州光华职业技术学校
  9. nginx 上传文件漏洞_nginx爆惊天漏洞 上传图片就能入侵服务器
  10. redis list操作_大厂面试高频Redis,记不住的多操作几次吧