zhyDaDa的个人站点

Linux 小连招

Table of content:

实用脚本

1panel

curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh && sudo bash quick_start.sh

安装docker

  • 国内
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
  • 国外
curl -sSL https://get.daocloud.io/docker | sh

trouble shooting

系统没有使用 systemd 作为初始化系统

  • 报错信息:

bash
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down

  • 操作:

bash
# 备份旧的下载源
mv /etc/apt/sources.list /etc/apt/sources.list.old
# 创建新的下载源
vim /etc/apt/sources.list

vim中填写

“`list
deb https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse

“`

输入完成后依次输入: Esc -> :wq -> Enter

最后: sudo apt update

Avatar photo
我是 zhyDaDa

前端/UI/交互/独立游戏/JPOP/电吉他/游戏配乐/网球/纸牌魔术

发表回复