LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-20-2019, 07:14 PM   #1
kodeb8
LQ Newbie
 
Registered: Mar 2019
Distribution: Fedora
Posts: 14

Rep: Reputation: Disabled
Question I am trying to install a .deb but I keep getting this message "E: sub-process popen returned an error (2)"


I am very, very new to linux. I installed ubuntu yesterday! And well, I've been trying to install a bunch of stuff. I've been noticing some errors whenever I try to install repos that, for most people, seem to work just fine. One error in particular I keep getting is: "E: sub-process popen returned an error (2)". I never really noticed this error until I tried to install the linux version of minecraft. I opened the minecraft.deb file, and it gave me the "E: sub-process popen returned an error (2)".
I've searched all over the internet and I cant find the solution to this problem or anyone that has ever had it! I really have no clue as to what I'm supposed to do. Please help!

Here's a screenshot of the error by the way:
 
Old 03-20-2019, 07:47 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,311
Blog Entries: 28

Rep: Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137
A web search for "E: sub-process popen returned an error (2)" will turn up a number of articles about this. Apparently, it could have several different causes.

You might want to try the search, look at some of top articles, and determine which seem would seem most suited to your case.
 
Old 03-20-2019, 08:28 PM   #3
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,101
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
Go into synaptic package manager and look for broken packages. Then use fix broken packages in th menu.

I've fixed error code 1 with apt-get -f install. But not sure about error code 2. I think I had to remove some broken packages years ago but dist-upgrade let me know what was broken.\

link

Last edited by rokytnji; 03-20-2019 at 08:30 PM.
 
Old 03-20-2019, 08:32 PM   #4
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,101
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
Reading the thread again. What .deb are you trying to install? Hope it is not a downloaded one.

Edit Minecraft.

https://www.howtogeek.com/198476/how...-distribution/

https://linuxconfig.org/how-to-insta...c-beaver-linux

Last edited by rokytnji; 03-20-2019 at 08:35 PM.
 
Old 03-20-2019, 11:57 PM   #5
kodeb8
LQ Newbie
 
Registered: Mar 2019
Distribution: Fedora
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rokytnji View Post
Go into synaptic package manager and look for broken packages. Then use fix broken packages in th menu.

I've fixed error code 1 with apt-get -f install. But not sure about error code 2. I think I had to remove some broken packages years ago but dist-upgrade let me know what was broken.\

link
Huh. I installed "apt-get -f install" with synaptic, I then hit "apply", and it worked! I saw is also removed some packages, so I'm guessing that might have had something to do with it. I've just installed minecraft! And some other .deb files I was having trouble with. I didn't mention it in my post, but I was also having problems installing wine, but now it works! Thanks.
 
Old 03-23-2019, 08:29 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,311
Blog Entries: 28

Rep: Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137
Glad you got it working.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"E: Sub-process /usr/bin/dpkg returned an error code (1)" while purging package badboy97 Linux - Newbie 2 06-23-2013 11:54 AM
Errors installing wine to Ubuntu 12.04 "Sub-process /usr/bin/dpkg returned an error" dapurplesharpie Linux - Software 2 06-26-2012 07:07 PM
Input/Output Error; dpkg sub-process /usr/bin/dpkg returned and error code (2) NosLycn Linux - Software 7 12-12-2011 02:50 AM
SOLVED: Upgrade error: Sub-process /usr/bin/dpkg returned an error code (1) jlb0057 Debian 3 03-11-2011 08:37 AM
Synaptic error: "sub-process /usr/bin/dpkg returned an error code (2)" firefly2442 Linux - Software 3 02-04-2004 06:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration