Ubuntu软件包如何降级

 最近在Ubuntu下安装typora时,发现在安装好了后,因为有装了启动东西,把gcc升级了,但是新版本的gcc不能够兼容老版本,故typora出现闪退,又不敢卸载gcc(因为卸载会一起卸载相关的一些依赖包,1.4G,胆子小,不敢惹,不敢惹),所以才想到要降级,最后找到下面这个方法,深感不错,特此分享。
  主要是用到aptitude工具来进行降级。
  
安装aptitude,使用aptitude来进行降级。  

sudo apt-get install aptitude

使用aptitude命令进行降级

aptitude install libncurses5=5.7+20100313-5

命令解释

aptitude install 包名=包的版本号

猜你喜欢

转载自blog.csdn.net/xueyubingfeng1/article/details/81675758