###
# apt工具跟yum\dnf工具都是类似的,它可以帮我们自动的解决依赖关系
# sudo apt update 在刚安装完ubuntu系统的时候在使用apt工具前需要进行update一下

# sudo apt update 更新软件列表
# sudo apt list --upgradable 查看可以更新的包

# sudo apt list 列出所有包

# sudo apt list --installed 列出已经安装的包

# sudo apt install tree 安装指定的包

# sudo apt remove tree 卸载指定的包

# sudo apt autoremove tree 卸载并自动清理不再依赖的包

# sudo apt show tree 查看包信息

# sudo apt download tree下载指定包

# sudo apt search tree 指定关键词 搜索包

# sudo apt upgrade 升级软件

###
# apt更改源:
# sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak 把默认的源做一个拷贝
# sudo sed -i "s/cn.archive.ubuntu.com/mirrors.aliyun.com/g" /etc/apt/sources.list 修改源做替换

# sudo apt update 更新 新的源生效
