首页 > 其他分享 >Debian初始化笔记

Debian初始化笔记

时间:2023-01-05 08:56:16浏览次数:44  
标签:初始化 http mirrors sudo apt debian 笔记 main Debian

安装后操作

1. 备份原来的源,防止换源完毕之后新源不能用

Debian系统中,软件源文件地址为:/etc/apt/sources.list

sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak

2. 新建/etc/apt/sources.list文件,换新源

sudo vim /etc/apt/sources.list

粘贴进去下方的阿里源。

deb http://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb http://mirrors.aliyun.com/debian-security/ bullseye-security main
deb-src http://mirrors.aliyun.com/debian-security/ bullseye-security main
deb http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib

3. update操作

sudo apt update
sudo apt upgrade

4. 如果新源不能用就回滚

sudo mv /etc/apt/sources.list.bak /etc/apt/sources.list

5. 其他软件

sudo apt install vim neofetch lolcat openssh-client wget curl git

sudo apt install g++ cmake ninja-build

sudo apt install openjdk-17-jdk

sudo apt install docker.io

标签:初始化,http,mirrors,sudo,apt,debian,笔记,main,Debian
From: https://www.cnblogs.com/SherlockZhang/p/17026525.html

相关文章

  • 雅思听力笔记——何琼
    听力考试概述1、听力评分情况合计40小题,每小题一分2、听力考试的相关注意事项提供时间读题听力只放一遍,听第二遍做的好完全没用4大段录音,合计40题30分钟的听力时......
  • 《卡片笔记写作法:如何实现从阅读到写作》豆瓣7.9
    [德]申克·阿伦斯(SönkeAhrens)著陈琳译人民邮电出版社 2022.11.04“不写,就无法思考。”(卢曼1992,53)2023.01.04本书的观点可以概括为:我们大脑的记忆空间......
  • debian11命令行安装字体
    一、需要用到三条命令mkfontscale/mkfontdir/fc-cache这三条命令属于两个软件包mkfontscale/mkfontdir属于xfonts-utils包,fc-cache命令属于fontconfig包,这两个包都包含......
  • 最小表示法学习笔记
    假设我们有一个字符串\(s\),下标从\(1\)到\(n\),我们将字符串复制一遍接在尾部,设新的字符串为\(ss\),对于\(1\leqi\leqn\)显然有\(ss_i=ss_{i+n}\)。对于\(1\leq......
  • 2023,1 做题笔记
    Hello2023!【CF1025G】CompanyAcquisitions考虑用势能函数去描述一个状态\(A=\{a_1,a_2,...,a_n\}\),令\(w(A)=\sum_{i=1}^nf(a_i)\),其中\(f(a_i)\)是一个关于\(a_......
  • Markdown学习笔记——DAY01
    Markdown学习标题:#+空格学习二级标题:##+空格以此类推字体粗体helloworld两星斜体helloworld一星粗体加斜体helloworld三星划去线helloworld两波浪引用......
  • mybaits 笔记2022年8月学习笔记
    mybatis整理前期准备安装必要依赖:idea开发mybatis,如果学习测试,可以在一个直接建一个空白项目,如果是用springboot,则建议用用boot的安装捆绑方式核心依赖org.mybatis......
  • 2018年笔记,突然看到2018年以前的一些笔记
    看到以前一些笔记,以前怕别人看到的笔记,居然写太认真就删了,苦了此心血,现在越工作了笔记反尔随心,现在自己的笔记除了自己能看懂,别人看到肯会乱自己要反省自己,  纯属回忆......
  • AN IMAGE IS WORTH 16X16 WORDS TRANSFORMERS FOR IMAGE RECOGNITION AT SCALE---阅读
    ANIMAGEISWORTH16X16WORDS:TRANSFORMERSFORIMAGERECOGNITIONATSCALE---阅读笔记摘要​虽然Transformer架构已成为NLP任务的事实标准,但它在CV中......
  • 10-11代码笔记
    1.日期格式FormatDateTime函数详解c以短时间格式显示时间,即全部是数字的表示FormatdateTime('c',now);输出为:2004-8-79:55:40d对应于时间中的日期,日期是一位则显......