记一次apt安装错误

(正在读取数据库 ... 系统当前共安装有 15430 个文件和目录。)
正准备解包 python2.7-minimal_2.7.13-2_amd64.deb  ...
new installation of python2.7-minimal; /usr/lib/python2.7/site-packages is a directory
which is expected a symlink to /usr/local/lib/python2.7/dist-packages.
please find the package shipping files in /usr/lib/python2.7/site-packages and
file a bug report to ship these in /usr/lib/python2.7/dist-packages instead
aborting installation of python2.7-minimal
dpkg: 处理归档 python2.7-minimal_2.7.13-2_amd64.deb (--install)时出错:
 子进程 新的 pre-installation 脚本 返回错误状态 1
在处理时有错误发生:
 python2.7-minimal_2.7.13-2_amd64.deb

 

提示里说本来该是符号链接的地方变成了目录,

那么我就按照提示进行修改:

cd    /usr/lib/python2.7

sudo rm -rf site-packages/

sudo ln -s site-packages /usr/local/lib/python2.7/dist-packages/
 

 

转载于:https://my.oschina.net/starryard/blog/1488441

你可能感兴趣的:(python,数据库)