LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-11-2009, 01:10 PM   #1
qriopeur
LQ Newbie
 
Registered: Feb 2009
Posts: 19

Rep: Reputation: 0
Aptitude return no error code


aptitude won't return an error code when there is an error, it always return 0, why?
 
Old 02-12-2009, 06:53 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
Originally Posted by qriopeur View Post
aptitude won't return an error code when there is an error, it always return 0, why?
Some output from aptitude wouldn't go amiss. Would you care to post us some?
Cheers,
jdk
 
Old 02-17-2009, 01:15 PM   #3
qriopeur
LQ Newbie
 
Registered: Feb 2009
Posts: 19

Original Poster
Rep: Reputation: 0
This basically is a local server to try out of installing myproject
debian package. After issuing the aptitude install, I unplug the network cable, it complain about can't get the package in the middle, but at the
end, everything went ok, so the return value is 0.

Thanks in advance if you can post an solution that we can get error code of non-zero.

Here is a log
------------------------------------------------------
root@Mymachine:~# aptitude -o Aptitude::Cmdline::ignore-trust-violations=true -y insttall myproject=1.0023-1
Reading package lists... Done
Reading state information... Done
Reading extended state information... Done
Initializing package states... Done
Building tag database... Done
The following packages are BROKEN:
myproject
0 packages upgraded, 0 newly installed, 1 downgraded, 1 to remove and 0 not upgraded.
Need to get 12.1MB of archives. After unpacking 0B will be used.

Score is 334

WARNING: untrusted versions of the following packages will be installed!

Untrusted packages could compromise your system's security.
You should only proceed with the installation if you are certain that
this is what you want to do.

myproject

*** WARNING *** Ignoring these trust violations because
aptitude::CmdLine::Ignore-Trust-Violations is 'true'!

Need to get 30.2MB of archives. After unpacking 0B will be used.
WARNING: untrusted versions of the following packages will be installed!

Untrusted packages could compromise your system's security.
You should only proceed with the installation if you are certain that
this is what you want to do.

myproject

*** WARNING *** Ignoring these trust violations because
aptitude::CmdLine::Ignore-Trust-Violations is 'true'!
Writing extended state information... Done
0% [Working] 0% [Connecting to 192.168.33.44 (192.168.33.44)]0% [Connecting to 192.168.33.44 (192.168.33.44)]0% [Connecting to 192.168.33.44 (192.168.33.44)]0% [Connecting to 192.168.33.44 (192.168.33.44)]0% [Connecting to 192.168.33.44 (192.168.33.44)]0% [Connecting to 192.168.33.44 (192.168.33.44)] Err http://192.168.33.44 tangerine/./ myproject 1.0023-1
Could not connect to 192.168.33.44:80 (192.168.33.44). - connect (113 No route to host)
0% [Working] E: Failed to fetch http://192.168.33.44/ubuntu/mydumb_p...023-1_all.deb: Could not connect to 192.168.33.44:80 (192.168.33.44). - connect (113 No route to host)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
SCSI error : <1 0 0 0> return code = 0x8000002 tovohery Linux - General 1 08-05-2008 03:31 PM
SCSI error: return code = 800002 darknight1726 Linux - Distributions 0 05-02-2008 05:26 AM
SCSI error : <0 2 0 0> return code = 0x40000 antunin Linux - Hardware 3 12-11-2007 12:21 PM
SCSI error : <0 0 0 0> return code = 0x70000 kkyriacou Linux - Hardware 2 09-19-2007 01:39 AM
Can't connect External HDD: SCSI error: return code = 0x70000 MicahCarrick Linux - Hardware 2 08-29-2006 02:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:07 PM.

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