How to install & uninstall software in ubuntu

本文介绍了在Linux环境下如何使用图形界面和命令行工具进行DEB包的安装与卸载操作。对于图形界面,提供了通过双击图标快速安装的方法,并详细说明了使用新立得软件包管理器进行卸载的步骤。对于命令行方式,则分别给出了安装和卸载的dpkg命令。

图形界面

命令


图形界面:


  • 安装deb 

            直接双击图标,输入密码后就可自动安装.


  • 卸载deb

           1. 菜单-系统->系统管理->新立得软件包管理器 或 Alt+F2(运行窗口)输入

sudo synaptic

           2.点击 [来源] 在左侧的选择框中选择 [本地/main] 再在右侧的选择框中查找需要卸载的deb包    如果知道deb包名,直接点击 [搜索]输入包名

           3.选择要删的包,右击,选择[标记以便删除]

           4.选择完后,单击[应用]


命令:
  • 要安装 .deb 套件包时
sudo dpkg -i package_file.deb
  • 要反安装 .deb 套件包时
sudo dpkg -r package_name
medivh@DT-AND-11430203:~$ sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa This PPA is an alternative to toolchain released at https://launchpad.net/gcc-arm-embedded. The source codes for both are same. Currently supports Ubuntu 10.04/12.04/14.04/14.10 32 and 64 bit. Detailed explanations to Launchpad PPA can be found at https://help.launchpad.net/Packaging/. That website explains how a PPA is set up and how to add existing PPA and install software from it. Here are quick steps to install toolchain from this PPA on Ubuntu before 14.04: Step1: Inside Ubuntu, open a terminal and input "sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa" Step2: Continue to input "sudo apt-get update" Step3: Continue to input to install toolchain "sudo apt-get install gcc-arm-embedded" To remove installed toolchain, just input "sudo apt-get remove gnu-arm-embedded". To update the toolchain, just repeat above step2 and step3. If it reports error message of conflict to gcc-arm-none-eabi, which is likely if upgrading from 4.x to 5+, please uninstall it first with: "sudo apt-get remove gcc-arm-none-eabi" Questions should be asked at https://answers.launchpad.net/gcc-arm-embedded Bug can be filed at https://bugs.launchpad.net/gcc-arm-embedded/+filebug. It is highly encouraged to ask question first before filing a bug. More info: https://launchpad.net/~team-gcc-arm-embedded/+archive/ubuntu/ppa Press [ENTER] to continue or Ctrl-c to cancel adding it. Ign:1 http://ppa.launchpad.net/team-gcc-arm-embedded/ppa/ubuntu focal InRelease Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease Err:3 http://ppa.launchpad.net/team-gcc-arm-embedded/ppa/ubuntu focal Release 404 Not Found [IP: 185.125.190.80 80] Hit:4 http://archive.ubuntu.com/ubuntu focal InRelease Hit:5 http://archive.ubuntu.com/ubuntu focal-updates InRelease Hit:6 http://archive.ubuntu.com/ubuntu focal-backports InRelease Reading package lists... Done E: The repository 'http://ppa.launchpad.net/team-gcc-arm-embedded/ppa/ubuntu focal Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. 这是什么问题,怎么解决
最新发布
10-14
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值