LinuxQuestions.org
Register a domain and help support LQ
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 06-02-2008, 11:00 PM   #1
digital_citizen
LQ Newbie
 
Registered: Mar 2008
Distribution: Slackware 12.1
Posts: 18

Rep: Reputation: 0
apt-get cannot update, tried this & that


I have been trying to update using atp-get, but am having no luck.

This system (ubuntu 6.10, 1ghz coppermine, via apollo chipset) is just over two weeks old.I spent a bit of time using both synaptic and apt-getsetting up software, with no problems. Now, it stopped working again, & ive had to also manually reset the iptables etc to repair my network (not quite sure whats goin on, both connected im sure) using iptables-restore. Here is a timeline:

1. system working
2. after using synaptic and apt-get, i start getting "failure to resolve" errors
3. my network goes down, I repair using iptabes-restore & reset my connection properties in network gui
4. network and internet work, apt still broke, same error
5. (interlude in which I broke X trying to install NVIDIA card, didn't think i'd need apt for that, lesson learnt)
6. found a few different ideas on this site
7. changed firefox proxy setting with about.config network.dns.disableIPv6 from false to true
8. now i get failed to fetch "****" 404 not found
9. changed firefox preferences to direct connection to internet, no effect
10. found a reference to /etc/apt/apt.conf file, but I have not that file, only a dir with that name

Notes...
Connected through serial cable to XP box to net
Cannot ping 82.211.81.182 as suggested by another thread

terminal output edited repetitions out

[
*****@*****-desktop:/etc/apt$ sudo apt-get update
Ign http://au.archive.ubuntu.com edgy Release.gpg
Ign http://au.archive.ubuntu.com edgy/main Translation-en_US
*/....ect
Translation-en_US
Ign http://au.archive.ubuntu.com edgy-updates/multiverse Translation-en_US
Ign http://au.archive.ubuntu.com edgy Release
Ign http://au.archive.ubuntu.com edgy-updates Release
*/...ect
Err http://au.archive.ubuntu.com edgy/main Packages
404 Not Found
Err http://au.archive.ubuntu.com edgy/universe Packages
404 Not Found
*/...ect
Get:1 http://packages.medibuntu.org edgy Release.gpg [189B]
Ign http://packages.medibuntu.org edgy/free Translation-en_US
Ign http://security.ubuntu.com edgy-security Release.gpg
Ign http://security.ubuntu.com edgy-security/main Translation-en_US
Ign http://packages.medibuntu.org edgy/non-free Translation-en_US
Hit http://packages.medibuntu.org edgy Release
Err http://packages.medibuntu.org edgy Release

Ign http://security.ubuntu.com edgy-security/universe Translation-en_US
Ign http://security.ubuntu.com edgy-security/restricted Translation-en_US
Ign http://security.ubuntu.com edgy-security/multiverse Translation-en_US
Ign http://security.ubuntu.com edgy-security Release
Get:2 http://packages.medibuntu.org edgy Release [5571B]
Ign http://security.ubuntu.com edgy-security/main Packages
Ign http://packages.medibuntu.org edgy Release
Ign http://security.ubuntu.com edgy-security/universe Packages
Ign http://security.ubuntu.com edgy-security/restricted Packages
Ign http://security.ubuntu.com edgy-security/multiverse Packages
Hit http://packages.medibuntu.org edgy/free Packages
Ign http://security.ubuntu.com edgy-security/main Sources
Ign http://security.ubuntu.com edgy-security/universe Sources
Ign http://security.ubuntu.com edgy-security/restricted Sources
Ign http://security.ubuntu.com edgy-security/multiverse Sources
Err http://security.ubuntu.com edgy-security/main Packages
404 Not Found
Err http://security.ubuntu.com edgy-security/universe Packages
404 Not Found
Hit http://packages.medibuntu.org edgy/non-free Packages
Err http://security.ubuntu.com edgy-security/restricted Packages
404 Not Found
*/...ect
Fetched 5760B in 3s (1667B/s)
Failed to fetch http://au.archive.ubuntu.com/ubuntu/...86/Packages.gz 404 Not Found
Failed to fetch http://au.archive.ubuntu.com/ubuntu/...86/Packages.gz 404 Not Found
...ect
Reading package lists... Done
W: GPG error: http://packages.medibuntu.org edgy Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2EBC26B60C5A2783
W: You may want to run apt-get update to correct these problems
E: Some index files failed to download, they have been ignored, or old ones used instead.
]

So it seems now some sources are being ignored?
yes, I may want to run apt-get update to correct these problems......
 
Old 06-02-2008, 11:23 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
I think it would help our discussion if we knew a few things about you and your computer. First, what is your level of expertise in networking concepts? Do you administer networks or computers for a living? Are you considered a guru in Windows, for instance? This information will help us to understand what level of network concepts we can expect you to already understand.

The previous thread got the IPv6 off of your system, presumably. I'm not so sure that it was completely successful. At least Firefox is not using IPv6 for name resolution. That will speed up name resolution in Firefox.

Is this computer at home or at work?

If it is at home do you have a cable or dsl router between your computer and your Internet connection?

Are you using DHCP for obtaining an IP address for the computer or have you set up a static address?

How do you feel about reformatting the system partition and reinstalling? Chances are that all of your problems would be resolved by reinstalling Ubunutu so this would be the quickest route.
 
Old 06-02-2008, 11:29 PM   #3
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
Sounds like some settings changed on XP. Check the XP settings.

You need to establish a number of things:

1. Are you actually getting a connection to XP via the serial line? What type of connection are you going for - ppp, slip?

2. Is XP sharing the internet connection.

3. Is XP providing you with DNS and gateway information

From what you say at the moment, we can't even decide where your network has failed.
 
Old 06-02-2008, 11:41 PM   #4
sherpalou
LQ Newbie
 
Registered: Mar 2007
Posts: 3

Rep: Reputation: 0
from the post:

Notes...
Connected through serial cable to XP box to net
Cannot ping 82.211.81.182 as suggested by another thread

I don't know anything about using a serial cable for networking, but it seems clear this is a networking issue, not a problem with apt.

Do you get an IP address automatically from the XP box, or is it set manually? How is the XP box connected to the net?

Is 82.211.81.182 a valid address on your network?

Where is your DNS taking place? Local (on your network), or at your ISP? It might be a flaky DNS issue, since some of the sources seem to work, sorta.

If you are using iptables, you must feel the need for a firewall. Have you tried temporarily disabling that?

I realize these are not expert questions. I'm just another noob who has been fumbling my way around for a while.

Sherpalou
 
Old 06-03-2008, 02:37 AM   #5
inspiron_Droid
Member
 
Registered: Dec 2006
Distribution: Debian (Wheeze)
Posts: 391

Rep: Reputation: Disabled
Purchase A Linksys WMP54G Router or a Netgear rp144 web safe router/firewall.
 
Old 06-03-2008, 03:56 AM   #6
digital_citizen
LQ Newbie
 
Registered: Mar 2008
Distribution: Slackware 12.1
Posts: 18

Original Poster
Rep: Reputation: 0
ok, I apologize for not being clearer.

First, this is a home computer, and connected by a crossover cable with an ethernet 10/100, in serial (ie, no hub, directly....sorry for the misunderstanding) to a box with XP. The XP box is connected to the internet via a DSL-302G modem, ethernet connection. The XP box is not filesharing with this box. I set up the two boxes myself, but the XP box is not my property, I am better at this than its owner. My networking knowledge was practically zero when I started connectiong these boxes, and after reading up had enough knowledge to successfully connect them. I have assigned static IP's to both boxes:

XP lan connection (to ubuntu)
address: 192.168.0.1
netmask: 255.255.255.0
no default gateway
Preferred DNS 123.2.6.197

Ubuntu lan connection (to XP)
address: 192.168.0.2
netmask: 255.255.255.0
gateway: 192.168.0.1
broadcast: 192.168.0.255

XP to DSL/ISP is set to obtain IP and DNS automatically

I can ping both 192.168.0.1 and 123.2.6.197

I dont claim to know a whole lot about IP theory, but i am learning, and no I will not simply re-install cause it might be easier, I see this as an opportunity to learn more and become more proficient. Have spent a lot of time optimising performance on friends windows boxes, but not much experience on linux yet.

RE: IPv6
in the networking box under IP information it says
IPv6 fe80::2d0:b7ff:fe71:54e scope:link

I am not sure what constitutes a valid address yet

I have tried disabling my firewall, to no effect

I think I'll check the XP settings, it is possible that the owner running a virusscan could have had an effect, I suppose?
 
Old 06-03-2008, 05:36 AM   #7
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
Just check the XP settings. You should be able to right-click on some icon then select "share connection". MS is screwed though - I can't remember if you click and 'share' the WAN interface or the LAN interface. XP will then run a dhcp server of some sort and insist on making the LAN interface 192.168.0.1 (seriously faulty behavior, but hey, that's MS).
 
Old 06-03-2008, 09:16 PM   #8
digital_citizen
LQ Newbie
 
Registered: Mar 2008
Distribution: Slackware 12.1
Posts: 18

Original Poster
Rep: Reputation: 0
Pinniped:
Just check the XP settings

I had a look around in XP & tried to set up dhcp, but internet connectivity is gone although nothing is saying its a bad connection.
There was a sharing connection in network wizard that was initially clicked yes, but shortly after that the XP box had a plethera of viruses detected within a short time and I changed it back. I managed to use apt-get after this, but was around the time it started playing up. Both systems have a firewall active, ZoneAlarm on XP and Guarddog on ubuntu.

Also, on further investigation, the modem is a D-Link 302G, not a DSL302G set to PPPoE

I have also found I can ping packages.ubuntu.com, but cannot download a deb package from them now, every mirror in every continent returns a 404 after ive searched for, and found, said file. Is there anything special about the packages sites in terms of network requirements?
 
Old 06-04-2008, 01:09 AM   #9
inspiron_Droid
Member
 
Registered: Dec 2006
Distribution: Debian (Wheeze)
Posts: 391

Rep: Reputation: Disabled
Exclamation

To confirm that you are still receiving an ip address via DHCP in Windows please enter in to a command prompt
Step one start > run ( type the following commands as they are presented here)

Code:
cmd
step 2

Code:
 ipconfig/all
Step three and four if need

Code:
 ipconfig/release

 ipconfig/renew

The Following is solely intended for future purposes only. The is my example of a stable connection This link will take you to a edited version of the out put of the above listed ipconfig/all command don on a Windows XP professional box as follows

Code:
 ipconfig/all >> stats.txt
command pipe which created a text file named stats in my my documents directory.


Please Post a response with a link to a pastebin of the out pit file generated by the last command string so as not to pollute the threads and there in annoy myself and other more experienced members.

Thanks,

Linux-Hawk

Last edited by inspiron_Droid; 06-04-2008 at 01:24 AM. Reason: BBCode flaws
 
  


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
Is there knoppix-like distro, that we can: apt-get update; apt-get install programs ? frenchn00b Linux - Distributions 7 04-28-2008 03:06 PM
Howabout apt-get update ; apt-get upgrade -f -y --force-yes in the crontab every week frenchn00b Debian 1 04-05-2008 08:47 AM
apt-get install not working / apt-get update is ok remy215 Debian 2 10-01-2005 08:02 PM
apt-get update errors since Debian released ( bad /etc/apt/sources.list ?) forgox Debian 10 06-13-2005 01:28 PM
Does 'apt-get update' update the database used by 'apt-cache'? davidas Debian 5 04-20-2004 02:27 AM


All times are GMT -5. The time now is 11:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration