<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Comments on: How to Solve “Sub-process /usr/bin/dpkg returned an error code (1)” In Ubuntu	</title>
	<atom:link href="https://www.tecmint.com/sub-process-usr-bin-dpkg-returned-an-error-in-ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/sub-process-usr-bin-dpkg-returned-an-error-in-ubuntu/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Tue, 19 Dec 2023 04:13:11 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Ravi Saive		</title>
		<link>https://www.tecmint.com/sub-process-usr-bin-dpkg-returned-an-error-in-ubuntu/comment-page-1/#comment-2116804</link>

		<dc:creator><![CDATA[Ravi Saive]]></dc:creator>
		<pubDate>Tue, 19 Dec 2023 04:13:11 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=40841#comment-2116804</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/sub-process-usr-bin-dpkg-returned-an-error-in-ubuntu/comment-page-1/#comment-2116754&quot;&gt;james&lt;/a&gt;.

@James,

The error you provided indicates a problem with unpacking the Chrome package, resulting in a non-zero exit code.

To fix this, you can try the following modifications to your Dockerfile:
&lt;pre&gt;
# Import Google Chrome signing key
RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub &#124; apt-key add -

# Add Google Chrome repository
RUN sh -c &#039;echo &quot;deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main&quot; &gt;&gt; /etc/apt/sources.list.d/google-chrome.list&#039;

# Update package list and install dependencies
RUN apt-get update &amp;&amp; apt-get install -y --no-install-recommends \
    google-chrome-stable \
    &amp;&amp; apt-get clean \
    &amp;&amp; rm -rf /var/lib/apt/lists/*

# Finish the rest of your Dockerfile...
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/sub-process-usr-bin-dpkg-returned-an-error-in-ubuntu/comment-page-1/#comment-2116754">james</a>.</p>
<p>@James,</p>
<p>The error you provided indicates a problem with unpacking the Chrome package, resulting in a non-zero exit code.</p>
<p>To fix this, you can try the following modifications to your Dockerfile:</p>
<pre>
# Import Google Chrome signing key
RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add -

# Add Google Chrome repository
RUN sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'

# Update package list and install dependencies
RUN apt-get update &#038;& apt-get install -y --no-install-recommends \
    google-chrome-stable \
    &#038;& apt-get clean \
    &#038;& rm -rf /var/lib/apt/lists/*

# Finish the rest of your Dockerfile...
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: james		</title>
		<link>https://www.tecmint.com/sub-process-usr-bin-dpkg-returned-an-error-in-ubuntu/comment-page-1/#comment-2116754</link>

		<dc:creator><![CDATA[james]]></dc:creator>
		<pubDate>Tue, 19 Dec 2023 01:54:15 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=40841#comment-2116754</guid>

					<description><![CDATA[I am using a &lt;strong&gt;dockerfile&lt;/strong&gt; to install &lt;strong&gt;Google Chrome&lt;/strong&gt; in &lt;strong&gt;Debian&lt;/strong&gt;. I tried several answers and yours doesn&#039;t work. 

Do you have any ideas? highly appreciated.

&lt;strong&gt;dockerfile&lt;/strong&gt;:
&lt;pre&gt;
RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub &#124; apt-key add - \
    &#038;&#038; sh -c &#039;echo &quot;deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main&quot; &#062;&#062; /etc/apt/sources.list.d/google-chrome.list&#039;

# Install Google Chrome
RUN DEBIAN_FRONTEND=noninteractive
RUN apt-get -f install
RUN apt-get update &#038;&#038; apt-get install -y google-chrome-stable
&lt;/pre&gt;
&lt;strong&gt;Error&lt;/strong&gt;:
&lt;pre&gt;
dpkg-deb: error:  subprocess was killed by signal (Killed)
dpkg: error processing archive /tmp/apt-dpkg-install-Fwjhp9/087-google-chrome-stable_120.0.6099.109-1_amd64.deb (--unpack):
 cannot copy extracted data for &#039;./opt/google/chrome/chrome&#039; to &#039;/opt/google/chrome/chrome.dpkg-new&#039;: unexpected end of file or stream
.....
Errors were encountered while processing:
 /tmp/apt-dpkg-install-Fwjhp9/087-google-chrome-stable_120.0.6099.109-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
The command &#039;/bin/sh -c apt-get update &#038;&#038; apt-get install -y google-chrome-stable&#039; returned a non-zero code: 100
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>I am using a <strong>dockerfile</strong> to install <strong>Google Chrome</strong> in <strong>Debian</strong>. I tried several answers and yours doesn&#8217;t work. </p>
<p>Do you have any ideas? highly appreciated.</p>
<p><strong>dockerfile</strong>:</p>
<pre>
RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add - \
    &amp;&amp; sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" &gt;&gt; /etc/apt/sources.list.d/google-chrome.list'

# Install Google Chrome
RUN DEBIAN_FRONTEND=noninteractive
RUN apt-get -f install
RUN apt-get update &amp;&amp; apt-get install -y google-chrome-stable
</pre>
<p><strong>Error</strong>:</p>
<pre>
dpkg-deb: error:  subprocess was killed by signal (Killed)
dpkg: error processing archive /tmp/apt-dpkg-install-Fwjhp9/087-google-chrome-stable_120.0.6099.109-1_amd64.deb (--unpack):
 cannot copy extracted data for './opt/google/chrome/chrome' to '/opt/google/chrome/chrome.dpkg-new': unexpected end of file or stream
.....
Errors were encountered while processing:
 /tmp/apt-dpkg-install-Fwjhp9/087-google-chrome-stable_120.0.6099.109-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
The command '/bin/sh -c apt-get update &amp;&amp; apt-get install -y google-chrome-stable' returned a non-zero code: 100
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ravi Saive		</title>
		<link>https://www.tecmint.com/sub-process-usr-bin-dpkg-returned-an-error-in-ubuntu/comment-page-1/#comment-2113322</link>

		<dc:creator><![CDATA[Ravi Saive]]></dc:creator>
		<pubDate>Mon, 11 Dec 2023 04:28:19 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=40841#comment-2113322</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/sub-process-usr-bin-dpkg-returned-an-error-in-ubuntu/comment-page-1/#comment-2112279&quot;&gt;john&lt;/a&gt;.

@John,

It seems that there are dependency issues with the &lt;strong&gt;linux-image-amd64&lt;/strong&gt; package, resulting in an error during the dpkg configuration process. 

Here&#039;s a suggestion on how to fix it:
&lt;pre&gt;
sudo dpkg --configure -a
sudo apt install -f
&lt;/pre&gt;
The &lt;strong&gt;dpkg&lt;/strong&gt; command attempts to configure all pending packages, and the &lt;strong&gt;apt&lt;/strong&gt; command tries to fix any broken dependencies.

If the issue persists, you may need to remove or purge the problematic packages and then reinstall them.
&lt;pre&gt;
sudo apt purge linux-image-amd64
sudo apt install linux-image-amd64
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/sub-process-usr-bin-dpkg-returned-an-error-in-ubuntu/comment-page-1/#comment-2112279">john</a>.</p>
<p>@John,</p>
<p>It seems that there are dependency issues with the <strong>linux-image-amd64</strong> package, resulting in an error during the dpkg configuration process. </p>
<p>Here&#8217;s a suggestion on how to fix it:</p>
<pre>
sudo dpkg --configure -a
sudo apt install -f
</pre>
<p>The <strong>dpkg</strong> command attempts to configure all pending packages, and the <strong>apt</strong> command tries to fix any broken dependencies.</p>
<p>If the issue persists, you may need to remove or purge the problematic packages and then reinstall them.</p>
<pre>
sudo apt purge linux-image-amd64
sudo apt install linux-image-amd64
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: john		</title>
		<link>https://www.tecmint.com/sub-process-usr-bin-dpkg-returned-an-error-in-ubuntu/comment-page-1/#comment-2112279</link>

		<dc:creator><![CDATA[john]]></dc:creator>
		<pubDate>Fri, 08 Dec 2023 17:03:14 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=40841#comment-2112279</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/sub-process-usr-bin-dpkg-returned-an-error-in-ubuntu/comment-page-1/#comment-1885600&quot;&gt;Ahmed&lt;/a&gt;.

I&#039;m having the same problem and I can&#039;t turn it around dpkg: error when processing the linux-image-amd64 package (--configure):

 dependency issues - left unconfigured
Errors found when processing:
 linux-headers-6.5.0-3parrot1-amd64
 linux-headers-amd64
 linux-image-6.5.0-3parrot1-amd64
 linux-image-amd64
Scanning application launchers
Removing duplicate launchers or broken launchers
Launchers are updated
E: Sub-process /usr/bin/dpkg returned an error code (1)]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/sub-process-usr-bin-dpkg-returned-an-error-in-ubuntu/comment-page-1/#comment-1885600">Ahmed</a>.</p>
<p>I&#8217;m having the same problem and I can&#8217;t turn it around dpkg: error when processing the linux-image-amd64 package (&#8211;configure):</p>
<p> dependency issues &#8211; left unconfigured<br />
Errors found when processing:<br />
 linux-headers-6.5.0-3parrot1-amd64<br />
 linux-headers-amd64<br />
 linux-image-6.5.0-3parrot1-amd64<br />
 linux-image-amd64<br />
Scanning application launchers<br />
Removing duplicate launchers or broken launchers<br />
Launchers are updated<br />
E: Sub-process /usr/bin/dpkg returned an error code (1)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: David H		</title>
		<link>https://www.tecmint.com/sub-process-usr-bin-dpkg-returned-an-error-in-ubuntu/comment-page-1/#comment-1973400</link>

		<dc:creator><![CDATA[David H]]></dc:creator>
		<pubDate>Sun, 26 Feb 2023 23:06:45 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=40841#comment-1973400</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/sub-process-usr-bin-dpkg-returned-an-error-in-ubuntu/comment-page-1/#comment-1891911&quot;&gt;nix&lt;/a&gt;.

Yup, I ran into this same exact situation. Going back and looking for missing libraries I was able to find their package names and do an &lt;strong&gt;apt-get install&lt;/strong&gt; on each of them.  So, after googling for hours, I finally came to this and got it finally fixed.  Yay!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/sub-process-usr-bin-dpkg-returned-an-error-in-ubuntu/comment-page-1/#comment-1891911">nix</a>.</p>
<p>Yup, I ran into this same exact situation. Going back and looking for missing libraries I was able to find their package names and do an <strong>apt-get install</strong> on each of them.  So, after googling for hours, I finally came to this and got it finally fixed.  Yay!</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
