Ubuntu日常系列:常用软件安装

Linux命令

Ubuntu日常系列:常用软件安装

2025-05-22 00:08


Ubuntu日常系列:常用软件安装指南 一、开发工具安装 VS Code(代码编辑器)

                                            




Ubuntu日常系列:常用软件安装指南

一、开发工具安装

  1. VS Code(代码编辑器)
curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | sudo gpg --dearmor -o /usr/share/keyrings/vscode.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/vscode.gpg] https://packages.microsoft.com/repos/code stable main" | sudo tee /etc/apt/sources.list.d/vscode.list
sudo apt update && sudo apt install code -y

📌 安装后建议安装常用插件:Prettier、GitLens、Python扩展包

  1. Docker(容器化工具)
sudo apt install apt-transport-https ca-certificates curl gnupg lsb-release -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt update && sudo apt install docker-ce docker-ce-cli containerd.io -y
sudo usermod -aG docker $USER

⚠️ 重启终端后生效,验证命令:docker --version

二、办公生产力工具

  1. LibreOffice(开源办公套件)
sudo apt install libreoffice libreoffice-gtk3 -y

📌 安装后支持文档/表格/演示文稿编辑,兼容Microsoft Office格式

  1. WPS Office(国产办公软件)
wget https://xiazai.wps.cn/downfile/13231_110106_wps-office_12.1.0.15114_amd64.deb
sudo apt install ./wps-office_12.1.0.15114_amd64.deb -y

💡 需手动安装中文语言包:sudo apt install fonts-wps-office

三、浏览器安装

  1. Google Chrome(主流浏览器)
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install ./google-chrome-stable_current_amd64.deb -y

📌 安装时若提示依赖问题,执行:sudo apt install -f

  1. Firefox(隐私保护浏览器)
sudo snap install firefox

💡 可通过 about:config调整高级设置

四、多媒体应用

  1. VLC(全能播放器)
sudo snap install vlc

📌 支持几乎所有音视频格式,安装即用

  1. Spotify(音乐流媒体)
curl -sS https://download.spotify.com/debian/pubkey_6224F993.gpg | sudo apt-key add -
echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list
sudo apt update && sudo apt install spotify-client -y

🎵 需注册账号使用

五、系统工具

  1. GIMP(图像编辑)
sudo apt install gimp -y

📌 支持图层编辑、插件扩展,替代Photoshop方案

  1. Timeshift(系统备份)
sudo apt install timeshift -y
sudo timeshift-setup

💾 建议设置每日增量备份

六、通讯工具

  1. Discord(即时通讯)
sudo snap install discord

🎮 游戏社区常用,支持屏幕共享功能

  1. Telegram(加密通讯)
sudo snap install telegram-desktop

🔐 支持端到端加密聊天

七、安装管理技巧

  1. 清理无用依赖
sudo apt autoremove --purge
  1. 查看已安装软件
dpkg --list | grep -i "关键词"
  1. 软件卸载示例
sudo apt purge 包名
sudo apt autoremove

🔧 常见问题处理:

  • 安装deb包依赖错误:sudo apt install -f
  • Snap应用无法启动:sudo snap install core; sudo snap refresh core
  • 中文显示乱码:安装中文字体 sudo apt install fonts-wqy-zenhei

📌 使用建议:

  1. 优先使用apt官方源安装软件
  2. 第三方仓库需验证签名可靠性
  3. 定期执行 sudo apt update获取更新
  4. 重要软件建议创建启动器快捷方式

通过上述标准化流程安装的软件,可在Ubuntu 22.04/23.04等主流发行版上稳定运行。建议配合 apt-mark hold 包名锁定关键软件版本,避免意外升级导致兼容性问题。对于开发者,推荐安装 build-essential工具链以支持源码编译。


标签:
  • Ubuntu