sudo apt 某个包的时候中断了, 然后莫名导致环境配置文件出错
以后的apt安装操作都一直报这个错
Setting up update-notifier-common (3.168.13) ...
Traceback (most recent call last):
File "/usr/lib/update-notifier/package-data-downloader", line 24, in <module>
import debian.deb822
ModuleNotFoundError: No module named 'debian'
dpkg: error processing package update-notifier-common (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of update-notifier:
update-notifier depends on update-notifier-common (= 3.168.13); however:
Package update-notifier-common is not configured yet.
dpkg: error processing package update-notifier (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of ubuntu-desktop:
ubuntu-desktop depends on update-notifier; however:
Package update-notifier is not configured yet.
dpkg: error processing package ubuntu-desktop (--configure):
dependency problems - leaving unconfigured
Setting up python3-six (1.10.0-3) ...
/usr/local/python3/lib/python3.9/subprocess.py:931: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
self.stdin = io.open(p2cwrite, 'wb', bufsize)
Errors were encountered while processing:
update-notifier-common
update-notifier
ubuntu-desktop
E: Sub-process /usr/bin/dpkg returned an error code (1)
google半天, 查了Stack Overflow没啥用, 最后找到一个可行方法
重置配置info
cd /var/lib/dpkg
sudo mv info info.bak
sudo mkdir info
sudo apt-get upgrade
装完之后apt就修好了.
done!
sudo apt 某个包的时候中断了, 然后莫名导致环境配置文件出错以后的apt安装操作都一直报这个错Setting up update-notifier-common (3.168.13) ...Traceback (most recent call last): File "/usr/lib/update-notifier/package-data-downloader", line 24, in <module> import debian.deb822ModuleNo
在使用 dpkg -i 安装.deb软件包的过程中,会出现安装失败的可能。之后无论用sudo apt install -f or sud apt autoremove 等常见的修复命令都是无效的。网络上很多解决方案都直接给出需要运行的命令,不分析原因也不说明理由。我从来不尝试这样的解决方案,除非我自己知道或是只能死马当活马医。
不过针对Sub-process /usr/bin/dpkg returned an error code (1)的问题,很简单的就能找到原因。
错误的原因
Sub-proces
解决apt-get安装中的E: Sub-process /usr/bin/dpkg returned an error code (1)问题
在用apt-get安装软件包的时候遇到E: Sub-process /usr/bin/dpkg returned an error code (1)问题,解决方法如下:
cd /var/lib/dpkg/
sudo mv info/ info_bak # 现将info文件夹更名
sudo mkdir info # 再新
问题描述:
使用apt-get install 安装软件报错E: Sub-process /usr/bin/dpkg returned an error code (1)
@Override public void run() { bytes = mmInStream.read(buffer); mHandler.obtainMessage(READ_DATA, bytes, -1, buffer).sendToTarget(); }
原因分析及解决思路:
如果要安装某个软件包xxx,遇到此错误
重新安装报错
(正在读取数据库 ... 系统当前共安装有 107977 个文件和目录。)
正准备解包 .../openssh-client_1%3a7.2p2-4ubuntu2.10_armhf.deb ...
正在解包 openssh-client (1:7.2p2-4ubuntu2.10) ...
正在选中未选择的软件包 ncurses-term。
有个需求就是要使用数据分析团队实现好的模型,而且是python的,要求在Flink平台上跑起来提供实时调用模型处理数据
文章目录背景JPMML介绍环境准备安装使用步骤示例:决策树分类Iris数据集训练模型并获得PMML文件JAVA工程调用PMML模型总结
在Flink平台上通过调用现有python实现的模型,进行实时预测处理
Flink V1.11
Java 1.8
Python3
jpmml
JPMML介绍
预言模型标记语言(Predictive Model Markup Language.
[论文笔记] GENDA: A Graph Embedded Network Based Detection Approach on encryption algorithm
CSDN-Ada助手:
pwn远程打通本地打不通的“玄学“问题解释
onc_again:
[CSDN] 批量导出博客markdown文件
崽崽的谷雨:
CTFlearn-reverse-wp(2)
fa1c4: