首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我如何在Debian中修复一个损坏的包?

我如何在Debian中修复一个损坏的包?
EN

Unix & Linux用户
提问于 2019-12-01 13:58:41
回答 1查看 755关注 0票数 0

我正在尝试在运行Debian的ReadyNAS上更新SSH证书。我怀疑几个月前的固件升级--更新了Apache和其他可能的包--可能破坏了“我的让我们加密更新”过程,这个过程每晚都在运行。当脚本运行时,会出现以下输出:

代码语言:javascript
复制
root@GeoffNAS:/home/admin# ./letsencrypt-renew.sh 
Bootstrapping dependencies for Debian-based OSes... (you can skip this with --no-bootstrap)
**(snip for brevity)**
virtualenv is already the newest version (15.1.0+ds-2+rnx1).
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-virtualenv : Depends: python-pip-whl (>= 8.1.1-2) but 1.5.6-5 is to be installed
E: Unable to correct problems, you have held broken packages.
root@GeoffNAS:/home/admin# 

当我运行apt-get升级时,我得到以下信息:

代码语言:javascript
复制
root@GeoffNAS:/home/admin# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  python-pkg-resources
Use 'apt autoremove' to remove it.
The following packages have been kept back:
  python3-virtualenv
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up nfs-kernel-server (1:1.2.8-9+deb8u1) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
update-rc.d: error: initscript does not exist: /etc/init.d/nfs-kernel-server
dpkg: error processing package nfs-kernel-server (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 nfs-kernel-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@GeoffNAS:/home/admin# 

知道如何通过修复python3-virtualenv来解决这个问题吗?我需要这个功能让我的加密自动更新。

谢谢你的帮助!

EN

回答 1

Unix & Linux用户

发布于 2019-12-04 12:35:46

我有一个本地的朋友,我信任的根访问我的机器直接登录和查看。他解决了这个问题,结果是几件事加在一起。为了历史,我要总结一下他在这里发现的东西。

  • Netgear ReadyNAS OS6实际上和Debian Jessie是一样的,并且从Jessie的存储库中抽离出来。
  • 在过去的某个时候,我偶然地删除了一些Debian存储库,同时在Netgear推动更新时修复了另一个问题
  • 官方Debian / Netgear / Jessie存储库与第三方(rnxtras)添加的存储库(Rnxtras)之间也存在冲突。

我的朋友能够解开存储库,删除并重新安装正确版本的破损包,并将它们钉在一起,这样它们以后就不会从错误的存储库中提取。让我们现在加密Apt调用,没有错误,并正确更新证书。

谢谢你的帮助!

票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/555053

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档