Page 1 of 2

error code 1 [SOLVED]

PostPosted: Thu May 08, 2008 12:10 pm
by dragonfly
I am a newbie to Ubuntu and don't know if I have a problem or not. Whenever I issue the command 'apt-get update' followed by 'apt-get upgrade' as instructed in Ubuntu for dummies I get [error code 1] after it has performed the command. Everything works just fine and I have installed other programs and they all work but this [error code 1] makes me wonder if a problem is brewing that could cause a crash somewhere down the line.
Thanks for any info
dragonfly

Re: error code 1

PostPosted: Thu May 08, 2008 2:08 pm
by ima
Dragonfly, welcome aboard.

there is some talk at http://ubuntu-tutorials.com/2007/10/01/ ... epository/
they give some ideas.

They say to try different mirrors (You can find a *very* long list of available mirrors in System > Admin > Software Sources : “Download From” drop-down, select “other”) and to try disabling a third party software source.

Worth a try.

Someone else may know more.

Re: error code 1

PostPosted: Thu May 08, 2008 4:03 pm
by SaddleTramp
ima wrote:Dragonfly, welcome aboard.

there is some talk at http://ubuntu-tutorials.com/2007/10/01/ ... epository/
they give some ideas.

They say to try different mirrors (You can find a *very* long list of available mirrors in System > Admin > Software Sources : “Download From” drop-down, select “other”) and to try disabling a third party software source.

Worth a try.

Someone else may know more.

and here's another: http://www.linuxquestions.org/questions ... e-1-195307

Seems, like ima said, could be a problem with the repos, could've been the package glitched up during the download, something along those lines. The link I posted had another suggestion that seemed to "fix" the problem, at least on their system.

Re: error code 1

PostPosted: Thu May 08, 2008 4:36 pm
by DaddyX3
dragonfly wrote:I am a newbie to Ubuntu and don't know if I have a problem or not. Whenever I issue the command 'apt-get update' followed by 'apt-get upgrade' as instructed in Ubuntu for dummies I get [error code 1] after it has performed the command. Everything works just fine and I have installed other programs and they all work but this [error code 1] makes me wonder if a problem is brewing that could cause a crash somewhere down the line.
Thanks for any info
dragonfly

Hello, You will have to remove all refrence to the automatix repository in your sources.list. To do so open up a terminal (alt+F2 then type: gnome-terminal and enter) and enter:
sudo gedit /etc/apt/sources.list
When your in there you will need to find the atomatix repostitory and comment it out by placing a # in front of the listing or just erase the line all together. Automatix is no longer supported and has shut down. I suspect that this is your problem with "update" and "upgrade" proccess. Also while your there, you should add the Ultimate Edition repository to the list by placing the following line down at the bottom of the list:
Code: Select all
deb http://repoubuntusoftware.info harty all#Ultimate Repo

Hope this gets you up to speed.

-ps Linux for dummies is a great book (from what I've heard), but some things in there are more dialed in for a non-UE distro. TheeMahn has taken a lot of the pain away by incorporating all the updates and so-forth within the .iso. So on a fresh install of Ultimate Edition, it should not really need the "upgrade" portion. You will need to "update" after you remove the line with automatix from the repository list. So as soon as you get rid of the line, click save and exit. Then from a terminal issue:
sudo apt-get update
This will get you back on course.

Re: error code 1

PostPosted: Thu May 08, 2008 8:41 pm
by ima
Daddy, I'm not trying to question your superior knowledge or anything but my very limited understanding is that the Automatix problem was with 1.8 not 1.7 and will the harty repo work with 1.7.

Once again I'm not questioning I'm just trying to straighten things out in my small little brain. :D

Re: error code 1

PostPosted: Fri May 09, 2008 7:58 am
by LeadFingers
dragonfly wrote:I am a newbie to Ubuntu and don't know if I have a problem or not. Whenever I issue the command 'apt-get update' followed by 'apt-get upgrade' as instructed in Ubuntu for dummies I get [error code 1] after it has performed the command. Everything works just fine and I have installed other programs and they all work but this [error code 1] makes me wonder if a problem is brewing that could cause a crash somewhere down the line.
Thanks for any info
dragonfly

It's useful to run this command with the -u option.
Code: Select all
sudo apt-get -u upgrade

This option causes APT to show the complete list of packages which will be upgraded. Without it, you'll be upgrading blindly. APT will download the latest versions of each package and will install them in the proper order.

This may give you a clue as to why the error.

Re: error code 1

PostPosted: Fri May 09, 2008 12:21 pm
by DaddyX3
ima wrote:Daddy, I'm not trying to question your superior knowledge or anything but my very limited understanding is that the Automatix problem was with 1.8 not 1.7 and will the harty repo work with 1.7.

Once again I'm not questioning I'm just trying to straighten things out in my small little brain. :D

I'm sorry draggonfly, I was spacing out. I thought you were running 1.8! :oops: Guess I got a little ahead of myself here. There have been so many questions about 1.8 lately I think I just automatically answered your question while in 1.8 mode! :roll: Sorry, once again.

But now that this is brought up with Automatix and an issue of 1.8 .... I am pretty sure that Automatix went completely south and no longer will work no matter what version of Ultimate Edition you are running. I will bet that the repository is listed in 1.7 as well, and therfore should be removed. I do not suggest that you add the 1.8 repo to your list like I stated earlier - this will do you no good :oops:

Re: error code 1

PostPosted: Fri May 09, 2008 12:53 pm
by dragonfly
Hi everyone, I took "ima's' advice and changed my mirror then I took "daddy x3's" advice and changed my sources list, then I took leadfingers advice and did the '-u upgrade'. I still get the notice "Sub-process /usr/bin/dpkg -error code (1). As I said everything works fine and downloads all work fine I am just wondering if this is a major concern and will I have problems later on. I still haven't looked into 'sadle tramp's' suggestion yet but will be going there shortly.
Thanks again everyone

Re: error code 1

PostPosted: Tue May 13, 2008 6:36 pm
by drama
dragonfly wrote:"Sub-process /usr/bin/dpkg -error code (1).


this makes me thing there is a broken package somewhere.

did you already remove kubuntu-docs?

i ask this because there was an issue with 1.7 where that package was broken in the default install.im thinking this is exactly what your problem ios

try this

Code: Select all
sudo apt-get remove kubuntu-docs


Code: Select all
sudo apt-get install kubuntu-docs


that will remove & then reinstall that package.

im thinking this is exactly what the problem is.

if that dont work try the next few things.

Code: Select all
sudo apt-get install -f


that should fix any other broken packages.

if that dont work try this one.

open synaptics (system-->admin-->synaptics) then click filters & click brokens. if anything is listed under broken then remove them.

hope this helps.

<BREW>

-drama

Re: error code 1

PostPosted: Tue Jul 01, 2008 11:26 am
by dragonfly
Well I finally got back to this board, and am pleased to report that after removing "kubuntu-docs" and reinstalling "kubuntu-docs" I no longer get the "error code 1".Thanks everyone. I do get a different home page now which requires me to open the "button" tab on the Christmas home page and then select whichever page I want to view. But at least I feel better about downloading now.
Thanks again