我在论坛上搜索过,尝试过很多解决方案,但都没有解决我的问题。这是终端信息
john@ubuntu:/var/lib/dpkg$ sudo apt-get install python-captcha
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
python-captcha
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/384 kB of archives.
After this operation, 516 kB of additional disk space will be used.
(Reading database ... 182992 files and directories currently installed.)
Unpacking python-captcha (from .../python-captcha_0.4-1_all.deb) ...
dpkg: error processing /var/cache/apt/archives/python-captcha_0.4-1_all.deb (--unpack):
trying to overwrite '/usr/share/pyshared/Captcha/Base.py', which is also in package python-pycaptcha 0.4-1~precise1
No apport report written because MaxReports is reached already
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/python-captcha_0.4-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案1
看来您已经安装了python-pycaptcha
(可能来自 PPA),它不能与系统同时安装python-captcha
。看看这是否能解决您的问题:
sudo apt-get purge python-pycaptcha python-captcha+