bash error line 230 during wget -q -O portion of setup

Matt_Domsch at Dell.com Matt_Domsch at Dell.com
Thu Jul 17 11:52:16 CDT 2008


Running the wget command under sudo itself isn't interesting.  It's the
output'd bash that needs to be run under sudo.

 

$ sudo -s

# wget wget -q -O - http://linux.dell.com/repo/firmware/bootstrap.cgi |
bash



Ensures that the bash is run under sudo...

 

Thanks,

Matt

 

--
Matt Domsch
Linux Technology Strategist, Dell Office of the CTO
linux.dell.com & www.dell.com/linux 

From: firmware-tools-devel-bounces at lists.us.dell.com
[mailto:firmware-tools-devel-bounces at lists.us.dell.com] On Behalf Of
Brett Ussher
Sent: Thursday, July 17, 2008 11:45 AM
To: firmware-tools-devel at lists.us.dell.com
Subject: bash error line 230 during wget -q -O portion of setup

 

I have a Dell Inspiron 1720 running Linux Mint 5.0 (Ubuntu flavor based 
on the 8.04 codebase). I found the BIOS update tools and thought it 
would be one less reason for me to boot up in Windows XP on this 
laptop. However, while trying to do the wget -q -O portion of the 
setup, I keep getting some errors:

~ $ sudo wget -q -O - http://linux.dell.com/repo/firmware/bootstrap.cgi 
| bash
[sudo] password for XXXXX:
bash: line 230: 
/etc/apt/sources.list.d/dell-software-temp-bootstrap.list: Permission
denied
Downloading GPG key: http://linux.dell.com/repo/GPG-KEY-libsmbios
Importing key.
gpg: no writable keyring found: eof
gpg: error reading `GPG-KEY': general error
gpg: import from `GPG-KEY' failed: general error
GPG-KEY import failed.
Either there was a problem downloading the key,
or you do not have sufficient permissions to import the key.


Took a look at the code for the cgi file wget pipes to bash and found 
the following function around line 230 (see the first error in the 
output above):

function handle_ubuntu()
{
local list=/etc/apt/sources.list.d/dell-software-temp-bootstrap.list
rm -f ${list}
echo "deb http://linux.dell.com/repo ${DISTRIB_CODENAME} dell-software" 
> ${list}
get_key apt
aptitude update
aptitude install dell-repository-keys
aptitude install dell-firmware-repository dell-software-repository
rm -f ${list}
aptitude update
}

When I try to run the 3rd line of this function, I get the following:

~ $ sudo echo "deb http://linux.dell.com/repo ${DISTRIB_CODENAME}
dell-software">
/etc/apt/sources.list.d/dell-software-temp-bootstrap.list
bash: /etc/apt/sources.list.d/dell-software-temp-bootstrap.list:
Permission denied

I then took a look for the "deb" command since I've never heard of it:

~ $ deb
bash: deb: command not found


Tried to look for it on Google, but with all the hits for .deb out 
there, it was useless. I'm wondering if any anyone has seen this problem

before and knows where I need to go from here.

-- 
Brett D. Ussher



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.us.dell.com/pipermail/firmware-tools-devel/attachments/20080717/f7a12a72/attachment.htm 


More information about the firmware-tools-devel mailing list