LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-02-2007, 02:51 AM   #1
yodar
LQ Newbie
 
Registered: Jan 2007
Posts: 7

Rep: Reputation: 0
error locks up my update tasks


cant up-date till this error is corrected I cant figger out what to do


E: Type 'wget' is not known on line 37 in source list /etc/apt/sources.list
E: The list of sources could not be read.
Go to the repository dialog to correct the problem.


can I get a step-by-step to eliminate 'line 37" ?

yodar
 
Old 04-02-2007, 03:03 AM   #2
igorc
Member
 
Registered: May 2005
Location: Sydney, Australia
Distribution: Ubuntu 5.04, Debian 3.1
Posts: 74

Rep: Reputation: 15
Hi,

Have you done anything lately to your sources.list file? Is that the original one created during the installation? It looks to me like you have to edit line 37 and substitute the wget command with ftp or http depending on the mirror site defined in that line.
If this doesn't correct the error please post your /etc/apt/sources.list file.
 
Old 04-02-2007, 07:53 PM   #3
yodar
LQ Newbie
 
Registered: Jan 2007
Posts: 7

Original Poster
Rep: Reputation: 0
etc/apt/sources.list

Quote:
Originally Posted by igorc
Hi,

Have you done anything lately to your sources.list file? Is that the original one created during the installation? It looks to me like you have to edit line 37 and substitute the wget command with ftp or http depending on the mirror site defined in that line.
If this doesn't correct the error please post your /etc/apt/sources.list file.
=============================================================

I have been all over the applications menus and cannot FIND the list file or repository dialog and when I use the software manager I get a fatal error sign when Gnome Apt tries to open cache file which describes available package lists

I really doan know what I'm doing here.I really did mean step by step.

E: Type 'wget' is not known on line 37 in source list /etc/apt/sources.list
E: The list of sources could not be read.
Go to the repository dialog to correct the problem.

sorry I am such a doofus but it took 10 years for me to get comfortable using winders and this is all new. Shame too, because functionally it is superior to Microsnot

Thanks for your patience

yodar
 
Old 04-02-2007, 10:33 PM   #4
igorc
Member
 
Registered: May 2005
Location: Sydney, Australia
Distribution: Ubuntu 5.04, Debian 3.1
Posts: 74

Rep: Reputation: 15
Hi,

What kind of distribution are you using? You can do one of the following:

1) Open an text editor (you should find one in the main drop down menu) logged in as root and brows to the file /etc/apt/sources.list. Find line 37 with wget statement in it and change it accordingly to http or ftp depending of the address in the line or just comment that line putting # at the beginning of the line. Save the file and close the editor.
-OR-
2) If you are comfortable with vi editor, open console/terminal window, login as root and type "vi /etc/apt/sources.list". Scroll to line 37 with wget and do one of the things mentioned in 1).

After that run:
# apt-get update # if this works you are ok
# apt-get -s upgrade # to check what's going to happen
# apt-get upgrade

Note: You can edit the /etc/apt/sources.list file as root only. Type "man vi" in the console to find instructions about vi editor. To login as root type "su" in the console and enter the root password when prompted.
 
Old 04-03-2007, 02:54 PM   #5
yodar
LQ Newbie
 
Registered: Jan 2007
Posts: 7

Original Poster
Rep: Reputation: 0
sources list copied for Igorc

deb http://us.archive.ubuntu.com/ubuntu/ edgy main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ edgy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ edgy-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ edgy-updates main restricted

## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
# deb http://us.archive.ubuntu.com/ubuntu/ edgy universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ edgy universe

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://us.archive.ubuntu.com/ubuntu/ edgy-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ edgy-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu/ edgy-security main restricted
deb-src http://security.ubuntu.com/ubuntu/ edgy-security main restricted
# deb http://security.ubuntu.com/ubuntu/ edgy-security universe
# deb-src http://security.ubuntu.com/ubuntu/ edgy-security universe


deb http://www.getautomatix.com/apt edgy main
wget http://www.getautomatix.com/apt/key.gpg.asc
gpg --import key.gpg.asc
gpg --export --armor 521A9C7C | sudo apt-key add -
sudo apt-get update
sudo apt-get install automatix2
echo "deb http://www.getautomatix.com/apt edgy main" | sudo tee -a /etc/apt/sources.list

deb http://kubuntu.org/packages/amarok-latest edgy main
==================

I found WGET statement and after I commented it (##) to attempt to nullify it I couldnt save it as it was read only.

Tried the terminal and it wanted a password i could not supply. the logons i use to boot system dont work.no keybord entries show while attempting to enter a trial password form vi.su entry at terminal
 
Old 04-03-2007, 09:30 PM   #6
igorc
Member
 
Registered: May 2005
Location: Sydney, Australia
Distribution: Ubuntu 5.04, Debian 3.1
Posts: 74

Rep: Reputation: 15
Hi,

First, you have to tell us what kind of distribution you use. You should always include the information like the distro and at least the kernel version in order to make the trouble shooting process more easier for us. The reason I asked for this is if you have e.g. ubuntu distro you can use the sudo command:

# sudo vi /etc/apt/sources.list

and supply your user password when prompted which will grant you write access to this file. Also there should be some GUI package manager specific for your distro that you can use.

Second, I clearly mentioned you have to login as root to change that config file. You should remember the root password you have set during the installation. If not, than please refer to some threads in these forums how to retrieve/change the root password.

Third, from the error you got when you tried to update the system it might be possible you don't have wget package installed. Type "which wget" in console to check that.
- If installed you may have to include the complete path to the wget binaries in the sources.list file -> e.g. replace wget with /usr/sbin/wget or what ever path you get from the which command output
-If not installed find that package on internet and download it. To avoid compilation of the package I would recommend downloading the .deb version and installing it like this:

# dpkg -i wget_whateverversion.deb

Afterwards your apt should work without any changes.
 
Old 04-04-2007, 12:24 PM   #7
yodar
LQ Newbie
 
Registered: Jan 2007
Posts: 7

Original Poster
Rep: Reputation: 0
my distribution

Sorry, when I entered this thread I "ticked" the ubunto title and presumed it was discussiions restricted to ubunto.

I have edgy 6.10 and seek my normal upgrades. I have some additiopnal advice from professionals on another rlist that I am going to try out tonight along with your learned suggestions.

I think acquiring the capacity to DEAL with a WGET command might be worth pursuing too.

Anyway, no work on these issues till this evening. I will report all I observe

Again I appreciate your help

yodar


[QUOTE=igorc]Hi,

First, you have to tell us what kind of distribution you use. You should always include the information like the distro and at least the kernel version in order to make the trouble shooting process more easier for us. The reason I asked for this is if you have e.g. ubuntu distro you can use the sudo command:

# sudo vi /etc/apt/sources.list
 
Old 04-05-2007, 03:19 AM   #8
)(*&^%$#@!
LQ Newbie
 
Registered: Apr 2007
Posts: 10

Rep: Reputation: 0
the easiest way is to use the command,.(this is done in the terminal)

Code:
gksudo gedit /etc/apt/sources.list
that will open the sourcelist with the right permissions

then make your source list look like this,

Code:
deb http://us.archive.ubuntu.com/ubuntu/ edgy main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ edgy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ edgy-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ edgy-updates main restricted

## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://us.archive.ubuntu.com/ubuntu/ edgy universe
deb-src http://us.archive.ubuntu.com/ubuntu/ edgy universe

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ edgy-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ edgy-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu/ edgy-security main restricted
deb-src http://security.ubuntu.com/ubuntu/ edgy-security main restricted
deb http://security.ubuntu.com/ubuntu/ edgy-security universe
deb-src http://security.ubuntu.com/ubuntu/ edgy-security universe


deb http://www.getautomatix.com/apt edgy main
#wget http://www.getautomatix.com/apt/key.gpg.asc
#gpg --import key.gpg.asc
#gpg --export --armor 521A9C7C | sudo apt-key add -
#sudo apt-get update
#sudo apt-get install automatix2
#echo "deb http://www.getautomatix.com/apt edgy main" | sudo tee -a /etc/apt/sources.list

deb http://kubuntu.org/packages/amarok-latest edgy main
the ones highlighted in red can be deleted they dont belong there.
save and exit then open terminal again and do

Code:
sudo aptitude update
and all should be well

Last edited by )(*&^%$#@!; 04-05-2007 at 03:21 AM.
 
  


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
Fedora locks up for sure and randomly after x11 update Lsatenstein Fedora 2 12-01-2006 04:00 AM
Mandriva Update Locks Up saturndude Mandriva 2 12-05-2005 12:20 PM
X-Server error locks up keyboard after restart Cloud Nine Linux - Software 1 10-15-2005 08:18 PM
Auto Update Error after update WL7JA SUSE / openSUSE 2 10-12-2005 01:36 PM
gnome 2.6 gtk thread locks error???? DaVenom Slackware 3 05-31-2004 07:42 AM

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

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