kanotix.com

Networking - apt-get doesnt work

firegrass - 10.07.2006, 13:13 Uhr
Titel: apt-get doesnt work
Does anyone know what this means or how to fix? Or could you point me in the right direction? I've searched the forums but havent found the right answer yet. Thanks for any help.

W: Couldn't stat source package list http://ftp.de.debian.org testing/main Packages (/var/lib/apt/lists/ftp.de.debian.org_debian_dists_testing_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.de.debian.org testing/contrib Packages (/var/lib/apt/lists/ftp.de.debian.org_debian_dists_testing_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.de.debian.org testing/non-free Packages (/var/lib/apt/lists/ftp.de.debian.org_debian_dists_testing_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
apt-get-update
0% [Connecting to ftp.us.debian.org (1.0.0.0)] [Connecting to ftp.de.debian.org (1.0.0.0)] [Connecting to kanotix.com (1.0.0.0)]


Then no response.
Gowator - 10.07.2006, 13:19 Uhr
Titel: RE: apt-get doesnt work
do you have internet? is it through a proxy?
it looks like it just doesn't have ftp access to the mirrors
firegrass - 10.07.2006, 13:33 Uhr
Titel: RE: apt-get doesnt work
Internet works fine.lan and wifi. I do use a proxy.
devil - 10.07.2006, 16:08 Uhr
Titel: RE: apt-get doesnt work
read up on apt-proxy please

greetz
devil
mzilikazi - 10.07.2006, 17:08 Uhr
Titel:
apt-proxy is probably one of the most improperly named applications since it actually has nothing to do with using apt from behind a proxy.
This is a common misconception. apt-proxy is:
Zitat:
A small proxy for caching apt-get requests for multiple Debian boxes behind a finite-bandwidth link. It builds up a partial mirror and serves later requests for the same file from that cache.


The proper way to use apt from behind a proxy is by putting your proxy info into a file:
Code:
/etc/apt/apt.conf


Mine looks like so:
Code:
Acquire::http::Proxy "http://web-proxy.rose.hp.com:8080"


If you also need authentification it would follow this pattern:
Code:
Acquire::http::Proxy "http://MYDOMAIN\MYNAME:MYPASS@MY.PROXY.COM:MYPORT"


You can test all of this before hand simply by exporting the proxy then running apt-get from the same shell you ran export through. Example:
Code:
http_proxy="http://<my.proxy.address>:<proxy port number>"
export http_proxy



Since we are on the proxy topic I might also mention that wget uses /etc/wgetrc for it's proxy configuration.
schnorrer - 10.07.2006, 19:12 Uhr
Titel:
may be the netcard works but the router has diconnected, the same message occure, or the ftp-serer is in service state at the moment. Than try it later.
devil - 10.07.2006, 20:06 Uhr
Titel:
mzilikazi,
thanks for clarification. i never used proxies in my life, so i had a misconception there. someone should rename that package.

greetz
devil
firegrass - 10.07.2006, 21:18 Uhr
Titel:
Thanks Mzilikazi
I think this is putting me in the right direction, but this is the response I get after editing /etc/apt/apt.conf I get this message:

E: Syntax error /etc/apt/apt.conf:3: Extra junk at end of file

Any suggestions?
Thanks
Smilie
mzilikazi - 10.07.2006, 22:03 Uhr
Titel:
firegrass hat folgendes geschrieben::
Thanks Mzilikazi
I think this is putting me in the right direction, but this is the response I get after editing /etc/apt/apt.conf I get this message:

E: Syntax error /etc/apt/apt.conf:3: Extra junk at end of file

Any suggestions?
Thanks
Smilie


Ah that might be my fault. I forgot a semicolon at the end. Here is copy/paste of my apt.conf:
Code:
APT::Default-Release "unstable";
APT::Cache-Limit 12582912;
Apt::Get::Purge;
Acquire::http::Proxy "http://web-proxy.rose.hp.com:8080";


See the semicolon at the end? Sorry about that. Verlegen
firegrass - 10.07.2006, 22:50 Uhr
Titel:
Thanks Mzilikazi
I've done that and now I get:

Err http://ftp.de.debian.org testing Release.gpg
Could not connect to proxy.iprimus.com.au:8080 (1.0.0.0), connection timed out
Err http://kanotix.com sid Release.gpg
Could not connect to proxy.iprimus.com.au:8080 (1.0.0.0), connection timed out
Err http://ftp.us.debian.org unstable Release.gpg
Could not connect to proxy.iprimus.com.au:8080 (1.0.0.0), connection timed out
Failed to fetch http://ftp.us.debian.org/debian/dists/u ... elease.gpg Could not connect to proxy.iprimus.com.au:8080 (1.0.0.0), connection timed out
Failed to fetch http://ftp.de.debian.org/debian/dists/t ... elease.gpg Could not connect to proxy.iprimus.com.au:8080 (1.0.0.0), connection timed out
Failed to fetch http://kanotix.com/files/debian/dists/sid/Release.gpg Could not connect to proxy.iprimus.com.au:8080 (1.0.0.0), connection timed out

I'm starting to think it's a router problem. I've tried to enable port 8080, but no joy.
I'll keep thinking about this and try again.
I've had to work hard to get things like Video card, DVD playback, mp3 playback,wireless and more to work. I'm now at the stage where I only have Windoze for Flight Sim and DVD Xcopy. If I can get this Apt problem fixed It will be perfect. I love Kanotix, it's the only distro I've tried so far that recognises most of my hardware without major problems.

I also REALLY appreciate all the help that is available here.
Thank you!
mzilikazi - 11.07.2006, 13:09 Uhr
Titel:
Hmmm is Iprimus your ISP? It seems that your ISP is requiring you to use a proxy? If so I would *assume* that you do not need to do any further configuration except at your gateway (router) itself. If that's the case perhaps you simply need to correct your sources.list. Please remove the Acquire line from apt.conf and update your sources.list like so:
Code:
su
wget -O/etc/apt/sources.list http://kanotix.com/files/fix/sources.list
apt-get update

bluewater - 11.07.2006, 14:20 Uhr
Titel:
I am not sure how applicable this is , if at all applicable

First apt-get update
Next
apt-key could be

apt-get install kanotix-keyrings for debian and kanotix keys, gpg --keyserver wwwkeys.eu.pgp.net --recv-keys 1F41B907

then it could be:
apt-key-proxy
By: mzilikazi
Date: 2005 August 30
gpg --keyserver-options http-proxy --keyserver wwwkeys.eu.pgp.net --recv-keys : then: apt-key add /root/.gnupg/pubring.gpg

********* edit do again apt-get update

I am on ozemail/iinet here in AUS.. never had a problem with them and they do have a FTP site for debian.. as a free DL (so not counting towards total DL limits, just havent been bothered to find out how...That said,, why should iprimus be worried about whom you DL from)

(((((All Blacks buggered the Wallabies,in Cup , good stuff.. evil grin))) (( waits for the piper ))
firegrass - 15.07.2006, 00:00 Uhr
Titel:
I just tried kpackage and apt-get while using a wireless connection away from home and it all works OK!
Therefore I'm now assuming that it could be a router problem at home. Now I'm getting closer.
I'll try a few things when I get home.

Bluewater- Most Australians seem to have forgotten how long the Kiwis owned the Bledisloe Cup,36 years I think. We win a couple of games then we think we own the world! At least we have cricket! Smilie
firegrass - 25.07.2006, 13:18 Uhr
Titel:
I tried at home. It doesn't work! Is there a port I should forward in the ADSL router?
schnorrer - 25.07.2006, 17:49 Uhr
Titel:
port 20 and 21 should be open the normal ftp-ports.
firegrass - 25.07.2006, 22:52 Uhr
Titel:
This is the error I now get. It seems like something to do with gpg keys. I'll search the forums to try and find an answer. If anyone can work out an answer from this I'd appreciate it. This is the last thing I have to do to make my Linux install 100% functional.
Thanks Smilie



Err http://kanotix.com sid Release.gpg
Could not connect to kanotix.com:80 (1.0.0.0), connection timed out
Err http://ftp.de.debian.org unstable Release.gpg
Could not connect to ftp.de.debian.org:80 (1.0.0.0), connection timed out
Err http://ftp.de.debian.org testing Release.gpg
Could not connect to ftp.de.debian.org:80 (1.0.0.0), connection timed out
Failed to fetch http://ftp.de.debian.org/debian/dists/u ... elease.gpg Could not connect to ftp.de.debian.org:80 (1.0.0.0), connection timed out
Failed to fetch http://ftp.de.debian.org/debian/dists/t ... elease.gpg Could not connect to ftp.de.debian.org:80 (1.0.0.0), connection timed out
Failed to fetch http://kanotix.com/files/debian/dists/sid/Release.gpg Could not connect to kanotix.com:80 (1.0.0.0), connection timed out
Reading package lists... Done
W: Couldn't stat source package list http://ftp.de.debian.org unstable/main Packages (/var/lib/apt/lists/ftp.de.debian.org_debian_dists_unstable_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.de.debian.org unstable/contrib Packages (/var/lib/apt/lists/ftp.de.debian.org_debian_dists_unstable_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.de.debian.org unstable/non-free Packages (/var/lib/apt/lists/ftp.de.debian.org_debian_dists_unstable_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.de.debian.org testing/main Packages (/var/lib/apt/lists/ftp.de.debian.org_debian_dists_testing_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.de.debian.org testing/contrib Packages (/var/lib/apt/lists/ftp.de.debian.org_debian_dists_testing_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.de.debian.org testing/non-free Packages (/var/lib/apt/lists/ftp.de.debian.org_debian_dists_testing_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://kanotix.com sid/main Packages (/var/lib/apt/lists/kanotix.com_files_debian_dists_sid_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://kanotix.com sid/contrib Packages (/var/lib/apt/lists/kanotix.com_files_debian_dists_sid_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://kanotix.com sid/non-free Packages (/var/lib/apt/lists/kanotix.com_files_debian_dists_sid_non-free_binary-i386_Packages) - stat (2 No such file or directory)
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.
firegrass - 11.08.2006, 11:34 Uhr
Titel: Puppy works
I've tried Puppy Linux at home and I can update and wget with no problems. So maybe it's a config problem in my Kanotix. I've reinstalled a couple of times but that hasn't helped. Anymore suggestions! Sehr glücklich
ockham23 - 11.08.2006, 11:43 Uhr
Titel:
Yes, try this to test your connection: Boot off the Kanotix live cd (not hd install!), open Konsole and enter the following commands:
Code:

ping kanotix.com -c 4
su
fix-unionfs
apt-get update


Post any error messages you may get.
firegrass - 11.08.2006, 12:09 Uhr
Titel:
PING kanotix.com (85.10.195.118) 56(84) bytes of data.

--- kanotix.com ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3000ms

knoppix@0[knoppix]$ su
root@0[knoppix]# fix-unionfs
Activating Unionfs now.
root@0[knoppix]# apt-get update
Get:1 http://kanotix.com sid Release.gpg [189B]
Get:2 http://kanotix.com sid Release [16.9kB]
Get:3 http://kanotix.com sid/main Packages [47.1kB]
Get:4 http://kanotix.com sid/contrib Packages [3030B]
Get:5 http://kanotix.com sid/non-free Packages [6979B]
Get:6 http://kanotix.com sid/main Sources [12.7kB]
Get:7 http://kanotix.com sid/contrib Sources [1503B]
Get:8 http://kanotix.com sid/non-free Sources [2873B]
Err http://ftp.de.debian.org unstable Release.gpg
Could not connect to ftp.de.debian.org:80 (1.0.0.0), connection timed out
Err http://ftp.de.debian.org testing Release.gpg
Could not connect to ftp.de.debian.org:80 (1.0.0.0), connection timed out
Fetched 91.2kB in 4m0s (380B/s)
Failed to fetch http://ftp.de.debian.org/debian/dists/u ... elease.gpg Could not connect to ftp.de.debian.org:80 (1.0.0.0), connection timed out
Failed to fetch http://ftp.de.debian.org/debian/dists/t ... elease.gpg Could not connect to ftp.de.debian.org:80 (1.0.0.0), connection timed out
Reading package lists... Done
W: Couldn't stat source package list http://ftp.de.debian.org unstable/main Packages (/var/lib/apt/lists/ftp.de.debian.org_debian_dists_unstable_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.de.debian.org unstable/contrib Packages (/var/lib/apt/lists/ftp.de.debian.org_debian_dists_unstable_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.de.debian.org unstable/non-free Packages (/var/lib/apt/lists/ftp.de.debian.org_debian_dists_unstable_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.de.debian.org testing/main Packages (/var/lib/apt/lists/ftp.de.debian.org_debian_dists_testing_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.de.debian.org testing/contrib Packages (/var/lib/apt/lists/ftp.de.debian.org_debian_dists_testing_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.de.debian.org testing/non-free Packages (/var/lib/apt/lists/ftp.de.debian.org_debian_dists_testing_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.de.debian.org unstable/main Packages (/var/lib/apt/lists/ftp.de.debian.org_debian_dists_unstable_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.de.debian.org unstable/contrib Packages (/var/lib/apt/lists/ftp.de.debian.org_debian_dists_unstable_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.de.debian.org unstable/non-free Packages (/var/lib/apt/lists/ftp.de.debian.org_debian_dists_unstable_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.de.debian.org testing/main Packages (/var/lib/apt/lists/ftp.de.debian.org_debian_dists_testing_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.de.debian.org testing/contrib Packages (/var/lib/apt/lists/ftp.de.debian.org_debian_dists_testing_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.de.debian.org testing/non-free Packages (/var/lib/apt/lists/ftp.de.debian.org_debian_dists_testing_non-free_binary-i386_Packages) - stat (2 No such file or directory)
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.


Does this mean anything to you? It started off positively but ended like this.
firegrass - 11.08.2006, 12:09 Uhr
Titel:
I'm sending this from LiveCD
ockham23 - 11.08.2006, 12:15 Uhr
Titel:
After booting off the cd, did you do anything to set up a network/Internet connection, or did you just enter the commands I posted?
firegrass - 11.08.2006, 12:17 Uhr
Titel:
I just entered the commands you posted without touching anything. The network was already connected.
ockham23 - 11.08.2006, 12:25 Uhr
Titel:
O.k., there are three possibilities:
1. The proxy server of your ISP is set up in a very strange way; not very likely:
Zitat:
I've tried Puppy Linux at home and I can update and wget with no problems.

2. There's something wrong with the data on the cd.

Please boot again and enter
Code:
testcd

in the line with the boot options.

The test will take a few minutes. Be patient and watch the output on the screen until KDE comes up.

3. Or your network card has a driver problem.[/quote]
firegrass - 11.08.2006, 13:19 Uhr
Titel:
The CD tested OK,no problems.
The network card seems to work OK, I can connect to the net and send and receive email.
As I said before, I can get packages and wget with Puppy linux ok, so I don't think it is my service provider.
This is now the only problem stopping me from enjoying Kanotix %100, but it is the best distro I have used so far with everything I need.
I'm using kanotix-2005-04. I don't want to use a later Kanotix as I want to use Open Office 2.0. And my wireless card won't work when I update my kernel.I don't want to try another distro. If I cant fix this I'll just wait for an updated 64 bit version when it has Open Office without chroot.
ockham23 - 11.08.2006, 13:47 Uhr
Titel:
I am puzzled: You get DNS resolution for kanotix.com, but you can't ping it; you can download from Kanotix http server, but ftp results in a timeout. Can you ping any other web address such as www.google.com?

The de.debian.org server is o.k., I just tested it with Kanotix-2005-04 and received only two apt-get error messages about gpg keys, which is normal behavior for 2005-04.
firegrass - 11.08.2006, 14:11 Uhr
Titel:
knoppix@0[PINs]$ ping google.com c 4
ping: unknown host c
knoppix@0[PINs]$ ping www.google.com c 4
ping: unknown host c
knoppix@0[PINs]$ ping http://www.google.com c 4
ping: unknown host http://www.google.com

I tried pinging google. I was'nt sure of the correct way, so I tried these!
But no joy.
I also tried my ISP and got this;
knoppix@0[PINs]$ ping iprimus.com.au -c 4
PING iprimus.com.au (210.50.7.4) 56(84) bytes of data.

--- iprimus.com.au ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3014ms

Thank you for the help you are giving me. I feel like Blanche Dubois in Street Car named Desire
"I've always relied on the kindness of strangers"! Smilie
ockham23 - 11.08.2006, 14:21 Uhr
Titel:
It's
Code:
ping www.google.com -c 4

You overlooked the dash ("-") in front of the "c".

If you find the time, try pinging www.google.com from Puppy Linux too. It's the same command; "-c 4" means "count to 4 and then stop". We don't want to hammer them.
firegrass - 11.08.2006, 14:32 Uhr
Titel:
knoppix@0[PINs]$ ping www.google.com -c 4
PING www.google.com (66.249.89.99) 56(84) bytes of data.

--- www.google.com ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3013ms

I'll try puppy now.
firegrass - 11.08.2006, 15:15 Uhr
Titel:
sh-3.1# ping www.google.com -c 4
PING www.l.google.com (66.249.89.99): 56 data bytes

--- www.l.google.com ping statistics ---
487 packets transmitted, 0 packets received, 100% packet loss
sh-3.1#


This is what I got in Puppy. But I can get new programs with it's package manager.
I'm confused!!
ockham23 - 11.08.2006, 15:33 Uhr
Titel:
Well, it looks like some types of protocols/actions work, while others don't. And it has probably nothing to do with the software you're running.

Are you able to log in to your router? Maybe some settings aren't correct. Are you familiar with setting it up? For how long has it been up? Have you tried resetting it by pulling the power plug?

O.k., one final ping test. Please boot off the live cd and try this:
Code:
ping ftp.de.debian.org -c 4

and
Code:
ping 141.76.2.4 -c 4

This will show whether there is a problem with domain name resolution for ftp.de.debian.org.

If you can ping the numeric address successfully, but not de.ftp.debian.org, your router may not be able to pass all DNS information to the linux client; I had this problem with a Draytek Vigor router.
firegrass - 11.08.2006, 16:02 Uhr
Titel:
I'm sort of familiar with the router. I can log in. I "think" my settings are OK. It stay's up for weeks. I sometimes have to turn it off for 3-4 minutes when there is a problem with my ISP.(at their suggestion) I'll try to reset it again and try.
Out of Interest to you have any ideas about which ports I should forward?
firegrass - 11.08.2006, 16:31 Uhr
Titel:
I'm off to bed now (1.30 am here)
Thanks for your help. I'll try again tomorrow.
ockham23 - 11.08.2006, 16:39 Uhr
Titel:
Good night, and let me know how the ping test with ftp.de.debian.org went.

Another idea: Some routers allow you to ping an internet address directly from the router's user interface. If your router has this feature, try pinging 141.76.2.4 (ftp.de.debian.org) or another numeric ip address that you can't connect to from your computer. This will bypass whatever problem there might be with your computer.
gmx99 - 15.02.2007, 14:16 Uhr
Titel:
Correct solution is:

as root in a console:

export http_proxy="http://domain\user:password@proxy:port"

gmx99
Alle Zeiten sind GMT + 1 Stunde
PNphpBB2 © 2003-2007