[Seek Help] dpkg: 处理归档 /var/cache/apt/archives/......时出错:
Tofloor
poster avatar
wookmin
deepin
2021-04-19 19:46
Author

是这样的 我先是要执行一个ssh命令 输入以后它显示ssh: connect to host 192.168.1.198 port 22: Connection timed out

后来我发现应该是我没有开启ssh服务 输入sudo apt-get install openssh-server开启 它显示:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
您也许需要运行“apt --fix-broken install”来修正上面的错误。
下列软件包有未满足的依赖关系:
 openssh-server : 依赖: openssh-client (= 1:8.2p1-4ubuntu0.2)
                  依赖: openssh-sftp-server
                  推荐: ncurses-term 但是它将不会被安装
                  推荐: ssh-import-id 但是它将不会被安装
 python2-minimal : 依赖: python2.7-minimal (>= 2.7.17~rc1-1~) 但是它将不会被安装
                   推荐: python2 但是它将不会被安装
 python2.7 : 依赖: python2.7-minimal (= 2.7.18-1~20.04.1) 但是它将不会被安装
E: 有未能满足的依赖关系。请尝试不指明软件包的名字来运行“apt --fix-broken install”(也可以指定一个解决办法)。

然后我输入apt --fix-broken install  (也试过输入sudo apt-get -f install  显示的一样

显示一堆这样的警告:

  dpkg: 警告: 无法找到软件包 vim-gtk 的文件名列表文件,现假定该软件包目前没有任何文件被安装在系统里。
和:

(正在读取数据库 ... 系统当前共安装有 75 个文件和目录。)
准备解压 .../python2.7-minimal_2.7.18-1~20.04.1_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: 处理归档 /var/cache/apt/archives/python2.7-minimal_2.7.18-1~20.04.1_amd64.deb (--unpack)时出错:
 新的 python2.7-minimal 软件包 pre-installation 脚本 子进程返回错误状态 1
在处理时有错误发生:
 /var/cache/apt/archives/python2.7-minimal_2.7.18-1~20.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1

 

跪求怎么办 感谢感谢!!!

Reply Favorite View the author
All Replies
火热的土豆
deepin
2021-04-19 22:16
#1

你可以先手动卸载python2.7-minimal再尝试安装openssh,dpkg  --purge python2.7-minimal

Reply View the author
wookmin
deepin
2021-04-19 23:22
#2
火热的土豆

你可以先手动卸载python2.7-minimal再尝试安装openssh,dpkg  --purge python2.7-minimal

好滴 我刚搜了一下好像就没有下载python2.7  我试了试输入apt-get remove python2.7-minimal 也显示软件包 python2.7-minimal 未安装,所以不会被卸载

Reply View the author