😁瞎折腾才能学到东西不是吗?从Centos换到Debian过来之后我的仓库磁盘需要从新挂载,然后出问题了.发现yum怎么也安装不上,如下:

root@blog:~# apt-get install yum
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python-rpm : Depends: rpm-common (= 4.12.0.2+dfsg1-2) but 4.16.1.2+dfsg1-3 is to be installed
E: Unable to correct problems, you have held broken packages.

搜索了一下发现网上给的方法无外乎就两种,一种就是叫你换源,另一种就是叫你执行如下三条命令

sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install yum

我告诉你,这其实卵用没有,真正有用的办法是使用aptitude命令来代替yum命令,当然我还傻逼的尝试了一下使用aptitude来安装yum,结果失败了.哈哈.如图:

最后通过aptitude install cifs-utils来安装了cifs挂在磁盘搞定..