LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-19-2008, 08:39 AM   #1
rapattack
Member
 
Registered: Jan 2008
Posts: 109

Rep: Reputation: 15
Sub-process /usr/bin/dpkg returned an error code (1)


Above is the last line I get to do with belocales something or another. Sorry still not that good with linux. I get this when I apt-get update or upgrade in the terminal everytime I do it and it would be nice to solve it once and for all.
I looked through this post :
http://www.linuxquestions.org/questi...code-1-171107/
and used the apt-get -f install then apt-get upgrade several times with no change but then I came across a post that he said that he clean up the repositories but getting rid of anything in the unstable section and I think he got rid of anything commented out. So the only lines in there were what was usable. That solved it for him but I am not sure so I wanted to asked first. Plus if you want me to post the repositories could you tell me in fine detail how to find, copy and paste it here. I know I have done that before but I honestly have short term memory loss. Also someone did say this error is not a problem on some forum some time ago to me but I am getting so many other things go wrong I don't know what to blame it on. So I try to fix what i can to eliminate the cause.
 
Old 04-20-2008, 12:11 AM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
default@debianetch:~$ cat /etc/apt/sources.list

Highlight the resulting text then paste it in the web browser..

also useful to look at your apt-get issue.. the output of the following commands
uname -a
cat /etc/debian_version
apt-cache policy apt



and you really shouldn't be running unstable until you are familiar with Debian. Stable or testing is a much more suitable place for a beginning Debian user.

and you should be using aptitude rather than apt-get since etch was released.. See the Debian etch release notes for more information on this. aptitude works pretty much the same as apt-get but handles conflict and dependency resolutions better.

Last edited by farslayer; 04-20-2008 at 12:13 AM.
 
Old 04-21-2008, 12:00 AM   #3
rapattack
Member
 
Registered: Jan 2008
Posts: 109

Original Poster
Rep: Reputation: 15
OK sorry I don't understand that first line that I supposed to put in a browser. Am I supposed to replace something with something?

I got this after the apt-get commands you told me to do:
carla:/home/carla# uname -a
Linux carla 2.6.18-6-486 #1 Sun Feb 10 22:06:33 UTC 2008 i686 GNU/Linux
carla:/home/carla# cat /etc/debian_version
lenny/sid
carla:/home/carla# apt-cache policy apt
apt:
Installed: 0.7.9
Candidate: 0.7.9
Version table:
*** 0.7.9 0
100 /var/lib/dpkg/status
0.6.46.4-0.1 0
500 http://ftp.au.debian.org etch/main Packages


I didn't know I was running an unstable version? I didn't install Debian. A friend did.

I have heard of Aptitude through the same friend but he never showed it to me. He just showed me the apt-get thing and using the package manager.
 
Old 04-21-2008, 08:05 PM   #4
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
I just meant to paste the output in the browser window... just like you did the rest...
Code:
default@debianetch:~$ cat /etc/apt/sources.list

#deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 NETINST Binary-1 20070407-11:29]/ etch contrib main

deb http://ftp.uwsg.indiana.edu/linux/debian/ etch main contrib non-free
deb-src http://ftp.uwsg.indiana.edu/linux/debian/ etch main contrib non-free

deb http://security.debian.org/ etch/updates main contrib non-free
deb-src http://security.debian.org/ etch/updates main contrib non-free

deb http://www.debian-multimedia.org etch main
All lines in your sources.list should have either etch or stable in them.
If you are running Stable, you should not see any lines with testing, lenny, unstable, or sid.
 
Old 04-22-2008, 03:21 AM   #5
rapattack
Member
 
Registered: Jan 2008
Posts: 109

Original Poster
Rep: Reputation: 15
Sorry I am not following what your saying.

As to the 2nd part of your reply...I don't know what that means either. I know what unstable means but as I didn't install or have an understanding what I installed....I am not sure where to go from here.
 
Old 04-22-2008, 01:06 PM   #6
thveillon
Member
 
Registered: Dec 2007
Posts: 59

Rep: Reputation: 16
Hi, since you seem to be new to Debian I'll try to explain as well as I can, but you shouldn't be using sid without being pretty familiar with Debian. You're post is indicating that your system (and your /etc/apt/sources.list) is a mess, you are running the stable kernel but with a system being a mix of testing/unstable... Not good !

For information, Debian is a four-sided distribution :

Etch = Stable = very usable, few bugs, rock solid, packages a bit old

Lenny = Testing = a bit buggy sometimes, but definitely usable, packages up to date.

Sid = Unstable = many bugs in sight, packages are bleeding edge, for experts and developers only !

Experimental = not even good enough for Sid, so stay at large !

So before you carry on you must clean up the /etc/apt/sources.list from the sid sources, keep the lenny ones if you can't live without the latest packages versions.

When this is clear, you must post a more detailed report of the dpkg error, there is almost certainly other lines around the error message you gave, probably related to a post/pre install script not executing properly.

(after any changes done to the sources.list file you must execute apt-get update)
 
Old 04-22-2008, 11:48 PM   #7
rapattack
Member
 
Registered: Jan 2008
Posts: 109

Original Poster
Rep: Reputation: 15
Thanks I have never heard it explained so well about Debian and the different sides of the distro. Unfortunately I might have had some bad advice since installing Debian and I have had to trust people.
I don't know how to clean the sources.list or what I should clean from it I am afraid. I have tried to read up about many of these things but it is still all beyond me.
The only thing that I can remember that comes form unstable is an app called Kino? I am not sure. I have a lot of multimedia apps like rosegarden, audacity, jack etc that I have had trouble with from the beginning. I get no sound from them...welll jack is supposed to be able to control the other sound apps but I gave up as I posted for help and got nowhere. So unfortunately I am back to making music on my windoze machine.

So the conclusion is I wouldn't know how to identify what is what in the cources.list now. I have been experimenting with debian for a year and even getting connecting to the net was painful.
 
Old 04-23-2008, 05:21 AM   #8
thveillon
Member
 
Registered: Dec 2007
Posts: 59

Rep: Reputation: 16
Since your looking for multimedia apps, and probably newer ones, you can go for a etch/lenny system with a sources.list looking like :

Code:
## etch
deb http://ftp.uk.debian.org/debian/ etch main contrib non-free
deb-src http://ftp.uk.debian.org/debian/ etch main contrib non-free
#debian-marillat
deb http://www.debian-multimedia.org etch main
deb-src http://www.debian-multimedia.org etch main
# security
deb http://security.debian.org/ etch/updates main contrib non-free
deb-src http://security.debian.org/ etch/updates main contrib non-free
# volatile
deb http://ftp.ens-cachan.fr/ftp/debian-volatile etch/volatile main contrib non-free
deb-src http://ftp.ens-cachan.fr/ftp/debian-volatile etch/volatile main contrib non-free

## lenny
deb http://ftp.uk.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.uk.debian.org/debian/ lenny main contrib non-free
#debian-marillat
deb http://www.debian-multimedia.org lenny main
deb-src http://www.debian-multimedia.org lenny main
# security
deb http://security.debian.org/ lenny/updates main contrib non-free
deb-src http://security.debian.org/ lenny/updates main contrib non-free
There's an entire thread dedicated to sources.list on this very forum, but I wouldn't recommend grabbing bites of foreign sources.list for now, just stick to the basics.

To edit the /etc/apt/sources.list file you need root privileges, it can be done in a console with :

Code:
su
nano /etc/apt/sources.list
or by launching a text editor with root privileges with :

[alt] [F2] (keys alt and F2 at the same time) ==> type kdesu kwrite for kde or gksu gedit for Gnome, then give the root password.

You should really spend some time reading the apt-howto (at least some of it, the first three chapters), and when having a problem reading the relevant section of the user-guide

You will enjoy your Debian experience more than by jumping from one forum to another grabbing randomly (ir)relevant comments.

For multimedia-friendly distro have a look at 64studio, ArtistX or UbuntuStudio (more available) on www.distrowatch.com, those are build for multimedia and can take some of the configuration burden away from you, many of them are Debian child's.

Last edited by thveillon; 04-23-2008 at 05:22 AM.
 
Old 04-24-2008, 02:54 AM   #9
rapattack
Member
 
Registered: Jan 2008
Posts: 109

Original Poster
Rep: Reputation: 15
Wow what is wrong with this site...I have been trying to get here for several hours...
Anyway I have all the multimedia apps I need. I am scared to reinstall Debian as this is the 2nd install I have had on this machine. I have had it for a year in total. I think there might be sources closer to me too...I am in Australia. I have tried to read many of the things to do with debian but I am afraid I don't understand them unless they are pictorial and have all details. Many times in so many forums I have been sent links and it has most of the time ended up in a mess.
As far as jumping forums...well that is because on one they don't answer questions sometimes and then another they don't finish helping me....etc etc etc.
Also I have a neurological condition and reading pages and pages is impossible. Thta might sound like an excuse but it is true. I have done really well to learn as much as I have but there is a limit.

Actually my friend did tell me of that distro with all the multimedia apps. Sounds good but I only have a 2 gig usage per month so I have no way of downloading it. In australia it is the worst when it comes to also speed of the internet. We have the worst speed in the whole world. Even African has better broadband speeds than we have. Also our usage limits and the charges for the internet at all is the worst.
Will look at the distro list though because it was probably 6 months ago this was mentioned to me. Geez wish I had the help to get net connected everytime I have had to reinstall. I also have had other machines with Debian and Ubuntu and it was so painful to get them connected too. The Ubuntu notebook is not connected right now because it just decided a few months ago it wasn't going to connect and I did nothing to cause that. It connects wirelessly though at hotspots.
 
Old 04-24-2008, 04:57 AM   #10
thveillon
Member
 
Registered: Dec 2007
Posts: 59

Rep: Reputation: 16
For the sources you can just change the "country code" for ftp servers (replacing uk with au I guess), or have a look at Debian mirrors around the world.

If you have a small bandwidth allowance you can download netinstall cd's or Ubuntu alternate cd, it's smaller and it will download only the necessary (up to date) files during the install. Of course it means being connected during the install, with a cable preferably for wireless isn't reliable enough and often not fully configured by a plain installation. Alternatively you could order a cd/dvd for a very small fee, Ubuntu used to practically give away install cd's.

I think Ubuntu would be a good bet in your case, the forums are usually friendly, there's plenty of documentation available including screen shots, video tutorials,and it's up-to-date (new version arriving today, it will come with a long term support meaning you could keep it for years). The Ubuntu Studio version might be worth considering, it's basically a plain Ubuntu with customized graphics and multimedia apps already installed.

I have family in Australia, they also suffer from the very poor quality of the Internet connection...
 
Old 04-24-2008, 11:19 PM   #11
rapattack
Member
 
Registered: Jan 2008
Posts: 109

Original Poster
Rep: Reputation: 15
Oh OK...I might give the sources thing a miss because it is just beyond my understanding.
As it turns out I got 3 offers in emails yesterday of at least 2 different distros that have multimedia apps. One is Ubuntustudio and dynebolic. The latter distro was installed by my email linux friend and he said it took him all of 30 seconds to get it connected to the net. He has sent me detailed instructions and is posted a burnt iso I guess in the snail mail.
Yeah I have a cabled connection not wireless. I only use wifi out and about as there are some free hotspots and the notebook is good for that. I have noticed how unreliable those spots and that sort of technology is. I have had 3 friends with wireless broadband and it is terrible. I get better results sometimes with the hotspots but sometimes it is really crap. I find a lot of the times it is also because the cafes/pubs that have the connection don't know what to do with it. It seems these hotspots are unmaintained.
Yep the Ubunut cd's I have I got for free from a Linux conference and that is what I have installed on the notebook. For the most part it has been easier that Debian even though Ubuntu comes from Debian. I like the challengue though and have battled through a few problems but it would be nice to get on with what I want the pc for which is making music.
Ah so your family knows how crap it is here. There was a lot of debate going on before the last federal election about the issue as it was the government that restricted the speeds. Businesses are the biggest screamers about it. the average person doesn't know. Businesses were missing out on vital business opportunities because if it came to tenderering a bid for a contract overseas they would miss out because of the speed of lack thereof. The new prime minister has promised to change that and I think review the high charges. I hope!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sub-Process /usr/bin/dpkg returned an error code (1) Bookspoppa Debian 39 11-12-2013 01:21 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
Debian Sub-process /usr/bin/dpkg returned an error code (1) gabsik Linux - Software 1 08-29-2008 10:07 AM
Perl-Base - Not Installing (Sub-process /usr/bin/dpkg returned an error code (1) lazyboy994 Linux - Software 0 02-02-2008 02:29 PM
Sub-process /usr/bin/dpkg returned an error code (1) adrian1979 Debian 1 11-12-2006 09:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:09 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