LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-14-2009, 09:50 AM   #1
rozilla
Member
 
Registered: Dec 2006
Distribution: Ubuntu 8.04
Posts: 72

Rep: Reputation: 15
Aptitude error redirection


I'm trying to get aptitude to redirect install errors to a log file, as follows:

Code:
$ sudo aptitude install -q package1 package2 package3 2>install-err.log
But it won't let me log errors. It works with 1>, where it logs everything, but I need it to show the normal output and redirect the errors into a logfile.
How do I achieve this?
 
Old 01-15-2009, 03:34 AM   #2
rozilla
Member
 
Registered: Dec 2006
Distribution: Ubuntu 8.04
Posts: 72

Original Poster
Rep: Reputation: 15
Well, it turns out the answer is

Code:
$ sudo aptitude install -q package1 package2 package3 2>&1> install-err.log
Unfortunately, that suppresses all output, even the interactive [Y/n] stuff that sometimes comes up. How do I keep the interaction from being surpressed?
 
Old 02-10-2009, 06:39 PM   #3
qriopeur
LQ Newbie
 
Registered: Feb 2009
Posts: 19

Rep: Reputation: 0
Quote:
Originally Posted by rozilla View Post
Well, it turns out the answer is

Code:
$ sudo aptitude install -q package1 package2 package3 2>&1> install-err.log
Unfortunately, that suppresses all output, even the interactive [Y/n] stuff that sometimes comes up. How do I keep the interaction from being surpressed?
Try aptitude -o Aptitude::Cmdline::ignore-trust-violations=true -y install <package>
 
  


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
aptitude-gtk: Gui for aptitude Rasmus Linux - Software 1 12-19-2008 08:53 AM
strange aptitude error message walterbyrd Debian 1 08-17-2007 08:20 PM
ldconfig and redirection error. Lord Zoltar Slackware 4 05-07-2007 10:06 PM
Aptitude error AndeAnderson Linux - General 3 10-15-2005 03:13 PM
error redirection raumohir Linux - Newbie 4 03-30-2005 12:13 PM

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

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