<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>无法安装任何软件 &#8211; 编码无悔 /  Intent &amp; Focused</title>
	<atom:link href="https://www.codelast.com/tag/%E6%97%A0%E6%B3%95%E5%AE%89%E8%A3%85%E4%BB%BB%E4%BD%95%E8%BD%AF%E4%BB%B6/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.codelast.com</link>
	<description>最优化之路</description>
	<lastBuildDate>Mon, 27 Apr 2020 17:48:30 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>[原创] 解决Ubuntu 无法用 apt-get install 安装任何软件(dpkg: error processing package xxx)的问题</title>
		<link>https://www.codelast.com/%e5%8e%9f%e5%88%9b-%e8%a7%a3%e5%86%b3ubuntu-%e6%97%a0%e6%b3%95%e7%94%a8-apt-get-install-%e5%ae%89%e8%a3%85%e4%bb%bb%e4%bd%95%e8%bd%af%e4%bb%b6dpkg-error-processing-package-xxx%e7%9a%84%e9%97%ae/</link>
					<comments>https://www.codelast.com/%e5%8e%9f%e5%88%9b-%e8%a7%a3%e5%86%b3ubuntu-%e6%97%a0%e6%b3%95%e7%94%a8-apt-get-install-%e5%ae%89%e8%a3%85%e4%bb%bb%e4%bd%95%e8%bd%af%e4%bb%b6dpkg-error-processing-package-xxx%e7%9a%84%e9%97%ae/#comments</comments>
		
		<dc:creator><![CDATA[learnhard]]></dc:creator>
		<pubDate>Mon, 19 Feb 2018 15:12:29 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[原创]]></category>
		<category><![CDATA[综合]]></category>
		<category><![CDATA[dpkg: error processing package]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[无法安装任何软件]]></category>
		<guid isPermaLink="false">https://www.codelast.com/?p=10083</guid>

					<description><![CDATA[<p>
Ubuntu不知道什么原因，不能用 apt-get install 安装<span style="color:#ff0000;">任何</span>软件了，并且在屏幕上输出海量错误信息，非常迷惑人，例如下面这一例：</p>
<blockquote>
<div>
		insserv: Starting vpnagentd_init depends on plymouth and therefore on system facility `$all&#39; which can not be true!</div>
<div>
		insserv: There is a loop between service vpnagentd_init and mountkernfs if started</div>
<div>
		insserv:&#160; loop involving service mountkernfs at depth 1</div>
<div>
		insserv: Starting vpnagentd_init depends on plymouth and therefore on system facility `$all&#39; which can not be true!</div></blockquote>&#8230; <a href="https://www.codelast.com/%e5%8e%9f%e5%88%9b-%e8%a7%a3%e5%86%b3ubuntu-%e6%97%a0%e6%b3%95%e7%94%a8-apt-get-install-%e5%ae%89%e8%a3%85%e4%bb%bb%e4%bd%95%e8%bd%af%e4%bb%b6dpkg-error-processing-package-xxx%e7%9a%84%e9%97%ae/" class="read-more">Read More </a>]]></description>
										<content:encoded><![CDATA[<p>
Ubuntu不知道什么原因，不能用 apt-get install 安装<span style="color:#ff0000;">任何</span>软件了，并且在屏幕上输出海量错误信息，非常迷惑人，例如下面这一例：</p>
<blockquote>
<div>
		insserv: Starting vpnagentd_init depends on plymouth and therefore on system facility `$all&#39; which can not be true!</div>
<div>
		insserv: There is a loop between service vpnagentd_init and mountkernfs if started</div>
<div>
		insserv:&nbsp; loop involving service mountkernfs at depth 1</div>
<div>
		insserv: Starting vpnagentd_init depends on plymouth and therefore on system facility `$all&#39; which can not be true!</div>
<div>
		......<br />
		insserv: Starting vpnagentd_init depends on plymouth and therefore on system facility `$all&#39; which can not be true!</div>
<div>
		insserv: There is a loop between service vpnagentd_init and dns-clean if started</div>
<div>
		insserv:&nbsp; loop involving service dns-clean at depth 1</div>
<div>
		......<br />
		insserv: Starting vpnagentd_init depends on plymouth and therefore on system facility `$all&#39; which can not be true!</div>
<div>
		insserv: exiting now without changing boot order!</div>
<div>
		update-rc.d: error: insserv rejected the script header</div>
<div>
		dpkg: error processing package binfmt-support (--configure):</div>
<div>
		&nbsp;subprocess installed post-installation script returned error exit status 1</div>
<div>
		No apport report written because MaxReports is reached already</div>
<div>
		&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Processing triggers for initramfs-tools (0.122ubuntu8.10) ...</div>
<div>
		update-initramfs: Generating /boot/initrd.img-4.13.0-32-generic</div>
<div>
		Errors were encountered while processing:</div>
<div>
		&nbsp;udev</div>
<div>
		&nbsp;grub-common</div>
<div>
		&nbsp;grub2-common</div>
<div>
		&nbsp;grub-pc-bin</div>
<div>
		&nbsp;grub-pc</div>
<div>
		&nbsp;resolvconf</div>
<div>
		&nbsp;binfmt-support</div>
<div>
		E: Sub-process /usr/bin/dpkg returned an error code (1)</div>
</blockquote>
<div>
	<br />
	这里只列出了部分错误信息，实际上输出的内容极多，多得让人眼都瞎。<br />
<span id="more-10083"></span>	<br />
	原因我不知道，但经过一番Google，我找到了一个解决办法：</div>
<pre style="margin-top: 0px; margin-bottom: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 0.9333em; line-height: 1.5em; font-family: Consolas, &quot;Lucida Console&quot;, &quot;DejaVu Sans Mono&quot;, Monaco, &quot;Courier New&quot;, monospace; background: rgb(0, 34, 64); color: rgb(255, 255, 255);">
<span style="color: rgb(255, 176, 84);">cd</span> /var/lib/dpkg/info/</pre>
<p>然后：</p>
<pre style="margin-top: 0px; margin-bottom: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 0.9333em; line-height: 1.5em; font-family: Consolas, &quot;Lucida Console&quot;, &quot;DejaVu Sans Mono&quot;, Monaco, &quot;Courier New&quot;, monospace; background: rgb(0, 34, 64); color: rgb(255, 255, 255);">
sudo mv udev.postinst udev.postinst.bak
sudo mv grub-common.postinst grub-common.postinst.bak
...</pre>
<p><span style="color: rgb(255, 255, 255);">文章来源：</span><a href="https://www.codelast.com/" target="_blank" rel="noopener noreferrer"><span style="color: rgb(255, 255, 255);">https://www.codelast.com/</span></a><br />
其中，命令里的 udev，grub-common 之类的软件包名，就是前面的错误信息里列出来的所有软件包名，当你把所有的那些文件全部重命名之后，再重新执行任何安装软件的命令 sudo apt-get install xxx，就会发现一切正常了。</p>
<p><span style="color: rgb(255, 255, 255);">文章来源：</span><a href="https://www.codelast.com/" rel="noopener noreferrer" target="_blank"><span style="color: rgb(255, 255, 255);">https://www.codelast.com/</span></a><br />
<span style="color: rgb(255, 0, 0);">➤➤</span>&nbsp;版权声明&nbsp;<span style="color: rgb(255, 0, 0);">➤➤</span>&nbsp;<br />
转载需注明出处：<u><a href="https://www.codelast.com/" rel="noopener noreferrer" target="_blank"><em><span style="color: rgb(0, 0, 255);"><strong style="font-size: 16px;"><span style="font-family: arial, helvetica, sans-serif;">codelast.com</span></strong></span></em></a></u>&nbsp;<br />
感谢关注我的微信公众号（微信扫一扫）：</p>
<p style="border: 0px; font-size: 13px; margin: 0px 0px 9px; outline: 0px; padding: 0px; color: rgb(77, 77, 77);">
	<img decoding="async" alt="wechat qrcode of codelast" src="https://www.codelast.com/codelast_wechat_qr_code.jpg" style="width: 200px; height: 200px;" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.codelast.com/%e5%8e%9f%e5%88%9b-%e8%a7%a3%e5%86%b3ubuntu-%e6%97%a0%e6%b3%95%e7%94%a8-apt-get-install-%e5%ae%89%e8%a3%85%e4%bb%bb%e4%bd%95%e8%bd%af%e4%bb%b6dpkg-error-processing-package-xxx%e7%9a%84%e9%97%ae/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
