美文网首页
Linux 基础环境

Linux 基础环境

作者: 代瑶 | 来源:发表于2021-11-16 11:05 被阅读0次
  1. 使用国内镜像

(1)备份镜像URL的地址

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo vi /ect/apt/sources.list

(2)将之前url给删掉,替换镜像源

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

(3)进行更新

sudo apt-get update
sudo apt-get upgrade

(4) 出现问题

ubuntu@primary:~$ sudo apt install yum
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
 yum : Depends: python-rpm but it is not going to be installed     #第一个问题
       Depends: rpm (>= 4.4.1) but it is not going to be installed    #第二个问题
E: Unable to correct problems, you have held broken packages.

sudo apt-get purge yum # 先删除
然后再下载 sudo apt-get install yum

相关文章

  • Linux

    Linux这篇没什么好说的。除了环境准备,剩下的就是敲命令了。 Linux基础命令。 Linux部署基础服务。 L...

  • 天兔(Lepus 3.8)数据库监控系统部署

    一、安装LAMP基础环境 首先向大家阐述LAMP(Linux+Apache+MySQL +PHP)基础环境配置。 ...

  • 软件测试知识学习路线

    Linux基础◇ Linux系统的了解与环境的熟悉◇ 常用的Linux命令◇ Linux文件属性、权限、用户...

  • linux5-网络

    一、tcp/ip基础 二、linux网络环境配置

  • Linux 基础环境

    使用国内镜像 (1)备份镜像URL的地址 (2)将之前url给删掉,替换镜像源 (3)进行更新 (4) 出现问题 ...

  • 负载均衡环境搭建实战之apache和tomcat

    Linux基本环境 负载均衡的环境需要在linux下搭建完成,所以有一个基础的linux系统是必须的,这里建议大家...

  • 1.Linux基础 基本操作:

    1.Linux基础 基本操作: 一、linux的实验环境 Linux操作系统,RedHat7.464位 Vmwar...

  • 第二节 基本概念与操作

    Linux 基础入门(新版)”实验报告 基本概念及操作 Linux基础入门(新版)实验报告 基本概念与操作 环境介...

  • 软件测试知识学习路线

    一、系统知识储备 1.Linux基础 a.Linux 系统了解和环境熟悉 b.常用Linux命令(比如,查看文件,...

  • 运维技术栈

    Linux系统运维与架构设计技术栈 Linux系统基础入门 Linux系统概述与运维环境搭建 Linux系统管理 ...

网友评论

      本文标题:Linux 基础环境

      本文链接:https://www.haomeiwen.com/subject/akchtrtx.html