Ubuntu Server 默认root是没密码的,是无法登录的
- 需要用安装的用户登录
- 然后对root 设置密码 sudo passwd
APT 》》 advanced package Tool 高级软件包工具
- apt-get update 更新软件包列表
- apt-get install 安装软件包
- apt-get remove 卸载软件包
- apt-get upgrade 升级有可用更新的系统(慎用)
- apt-cache search 搜索软件包
- apt-cache show 获取包信息
- apt-get remove --purge 删除包及配置文件 purge 是清洗意思
- apt-cache depends 了解使用依赖
- apt-cache rdepends 查看被那些包依赖
- apt-get build-dep 安装相关的编译环境
- apt-get source 下载源代码
- apt-get clean && apt-get autoclean 清理无用的包
- apt-get check 检查是否有损坏的依赖

查看系统版本
lsb_release -a
》》Codename 为 noble ,该名称为 Ubuntu 系统的名称,修改数据源需要用到该名称