error processing python2.7-minimal
如题
一开始我只是单纯的想要装一个 来升级我的gcc的结果 报了一个 Ubuntu的add-apt-repository: command not found
然后我就装啊,输入指令:
$ sudo apt-get install software-properties-common python-software-properties
接着就报错了:
....
Errors were encountered while processing:
python2.7-minimal
E: Sub-process /usr/bin/dpkg returned an error code (1)
如果报了这个错误,那么先输入如下指令,删掉出错的包,就算你不输入,他后面也会有提示:
sudo apt-get -f install
也查了一大堆,终于找到解决思路:
sudo apt-get install --reinstall python
大致思路是,由于python版本不匹配的关系,重新安装就行
ubuntu的更新有时候会有一些问题,
dpkg: dependency problems prevent configuration of hplip-data:
这时观察是关联到对应的python上的,
重新安装了python后,就可以了
经过重新输入如下指令之后呢,问题就解决了:
$ sudo apt-get install software-properties-common python-software-properties