synaptic and apt not working

Help with issues regarding installation of Debian

synaptic and apt not working

Postby waterwally » 2006-08-12 07:21

After spending months trying to fix this problem, reading hundreds of postings - I GIVE UP & ask for some help.
synaptic and apt will not connect to the net to get any dowloads or updates, it seems to be a network problem "mine". it seems to think all the repositories are at 1.0.0.0
I have tried dozens of things to fix it but nothing works ??????? any sugustions
I love Linux But I love the people more
waterwally
 
Posts: 28
Joined: 2005-09-08 09:23
Location: Australia

Postby bluesdog » 2006-08-12 18:40

Doubtless these are just a few of the dozens of already tried things...

:?

Do other network apps operate normally?

Is DNS working ok? To check, first do nslookup on a 'known' address.

Example
nslookup
> www.google.com
Server: 192.168.0.1
Address: 192.168.0.1#53

Non-authoritative answer:
www.google.com canonical name = www.l.google.com.
Name: www.l.google.com
Address: 66.102.7.147
Name: www.l.google.com
Address: 66.102.7.99
Name: www.l.google.com
Address: 66.102.7.104


(type 'exit', to leave nslookup)

What happens when you ping google.com?

Example:
ping -c 5 -v google.com
PING google.com (64.233.167.99) 56(84) bytes of data.
64 bytes from 64.233.167.99: icmp_seq=1 ttl=240 time=111 ms
64 bytes from 64.233.167.99: icmp_seq=2 ttl=240 time=147 ms
64 bytes from 64.233.167.99: icmp_seq=3 ttl=240 time=127 ms
64 bytes from 64.233.167.99: icmp_seq=4 ttl=240 time=178 ms
64 bytes from 64.233.167.99: icmp_seq=5 ttl=240 time=152 ms

--- google.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4000ms
rtt min/avg/max/mdev = 111.916/143.544/178.233/22.720 ms

What is output of
Code: Select all
apt-cache policy


What is ouput of
Code: Select all
# apt-get check

Have you tried
Code: Select all
# dpkg-reconfigure apt
User avatar
bluesdog
 
Posts: 1779
Joined: 2006-02-01 09:02
Location: Similkameen, British Columbia, Canada

THANK YOU BLUESDOG FOR YOUR REPLY

Postby waterwally » 2006-08-13 04:46

Your time in replying to my problem is much appreciated .
I don't want to waste your time with a lot of information that is irrelevent but will include what I hope is usefull.
I am using a Netcomm router modem and have set my Machine to 192.168.1.65 with the modem 192.168.1.1 , the Internet works fine.
I have had the same problem with UBUNTU - KUBUNTU and DEBIAN.

the following outputs were as follows

p4:~# nslookup www.google.com
Server: 192.168.1.1
Address: 192.168.1.1#53

Non-authoritative answer:
Name: www.google.com
Address: 66.102.7.147


p4:~# nslookup 66.102.7.147
Server: 192.168.1.1
Address: 192.168.1.1#53

Non-authoritative answer:
147.7.102.66.in-addr.arpa name = www.google.com.

Authoritative answers can be found from:


p4:~# ping -c 5 -v google.com
PING google.com (72.14.207.99) 56(84) bytes of data.
64 bytes from google.com (72.14.207.99): icmp_seq=1 ttl=244 time=245 ms
64 bytes from google.com (72.14.207.99): icmp_seq=2 ttl=244 time=247 ms
64 bytes from google.com (72.14.207.99): icmp_seq=3 ttl=244 time=245 ms
64 bytes from google.com (72.14.207.99): icmp_seq=4 ttl=244 time=244 ms
64 bytes from google.com (72.14.207.99): icmp_seq=5 ttl=244 time=243 ms

--- google.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4022ms
rtt min/avg/max/mdev = 243.707/245.277/247.228/1.433 ms



p4:~# apt-cache policy
Package Files:
100 /var/lib/dpkg/status
release a=now
Pinned Packages:
W: Couldn't stat source package list http://http.us.debian.org stable/main Packages (/var/lib/apt/lists/http.us.debian.org_debian_dists_stable_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://http.us.debian.org stable/contrib Packages (/var/lib/apt/lists/http.us.debian.org_debian_dists_stable_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://http.us.debian.org stable/non-free Packages (/var/lib/apt/lists/http.us.debian.org_debian_dists_stable_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://non-us.debian.org stable/non-US/main Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_stable_non-US_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://non-us.debian.org stable/non-US/contrib Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_stable_non-US_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://non-us.debian.org stable/non-US/non-free Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_stable_non-US_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://security.debian.org stable/updates/main Packages (/var/lib/apt/lists/security.debian.org_dists_stable_updates_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://security.debian.org stable/updates/contrib Packages (/var/lib/apt/lists/security.debian.org_dists_stable_updates_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://security.debian.org stable/updates/non-free Packages (/var/lib/apt/lists/security.debian.org_dists_stable_updates_non-free_binary-i386_Packages) - stat (2 No such file or directory)


p4:~# apt-get check
Reading Package Lists... Done
Building Dependency Tree... Done
W: Couldn't stat source package list http://http.us.debian.org stable/main Packages (/var/lib/apt/lists/http.us.debian.org_debian_dists_stable_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://http.us.debian.org stable/contrib Packages (/var/lib/apt/lists/http.us.debian.org_debian_dists_stable_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://http.us.debian.org stable/non-free Packages (/var/lib/apt/lists/http.us.debian.org_debian_dists_stable_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://non-us.debian.org stable/non-US/main Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_stable_non-US_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://non-us.debian.org stable/non-US/contrib Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_stable_non-US_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://non-us.debian.org stable/non-US/non-free Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_stable_non-US_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://security.debian.org stable/updates/main Packages (/var/lib/apt/lists/security.debian.org_dists_stable_updates_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://security.debian.org stable/updates/contrib Packages (/var/lib/apt/lists/security.debian.org_dists_stable_updates_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://security.debian.org stable/updates/non-free Packages (/var/lib/apt/lists/security.debian.org_dists_stable_updates_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


p4:~# dpkg-reconfigure apt

""" These are my words = there was no output from this command """

THANK YOU AGAIN FOR YOUR SUGGESTIONS

KEN IN AUSTRALIA
I love Linux But I love the people more
waterwally
 
Posts: 28
Joined: 2005-09-08 09:23
Location: Australia

Postby Lavene » 2006-08-13 04:58

Just a shot in the dark: what is the content of your /etc/apt/apt.conf file?

Tina
Lavene
Site admin
 
Posts: 5099
Joined: 2006-01-04 04:26
Location: Oslo, Norway

Postby bluesdog » 2006-08-13 06:49

Also check if you have set environmental variable http_proxy. This can override apt.conf proxy setting

Post output of
Code: Select all
printenv


You may as well update your /etc/apt/sources.list while you're at it.

Note the 'non-us' repositories are pretty much deprecated as of the 3.1 release.

Check here for a list of possible mirror repositories to find one that may serve you better/faster etc.
User avatar
bluesdog
 
Posts: 1779
Joined: 2006-02-01 09:02
Location: Similkameen, British Columbia, Canada

THANK YOU BLUESDOG & LAVENE

Postby waterwally » 2006-08-13 09:20

p4:~# printenv
SSH_AGENT_PID=1566
TERM=xterm
DESKTOP_STARTUP_ID=
SHELL=/bin/bash
GTK_RC_FILES=/etc/gtk/gtkrc:/root/.gtkrc-1.2-gnome2
WINDOWID=31457349
USER=root
GNOME_KEYRING_SOCKET=/tmp/keyring-9TAE0f/socket
SSH_AUTH_SOCK=/tmp/ssh-FJSpfD1523/agent.1523
SESSION_MANAGER=local/p4:/tmp/.ICE-unix/1523
USERNAME=root
DESKTOP_SESSION=gnome
PATH=/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11:/usr/games
GDM_XSERVER_LOCATION=local
PWD=/root
LANG=en_AU
PS1=\h:\w\$
GDMSESSION=gnome
HOME=/root
SHLVL=1
LANGUAGE=en_AU:en_US:en_GB:en
GNOME_DESKTOP_SESSION_ID=Default
LOGNAME=root
DISPLAY=:0.0
COLORTERM=gnome-terminal
XAUTHORITY=/root/.Xauthority
_=/usr/bin/printenv

--------------------------------------------------------------

I don't under stand how to do this "" Also check if you have set environmental variable http_proxy. This can override apt.conf proxy setting

----------------------------------------------------------------
TO LAVENE: there is no /etc/apt/apt.conf
the only files in here are " sources.list & sources.list.old " and a FOLDER " apt.conf.d "

I wish to thank u all

ken
I love Linux But I love the people more
waterwally
 
Posts: 28
Joined: 2005-09-08 09:23
Location: Australia

BLUESDOG & LAVENE

Postby waterwally » 2006-08-13 10:30

Is there something I should be reading or some wiki or documents that I have missed that would help me to understand more about this problem.
I am a very experienced Dos and Windose user, and can build and setup most types of computers. But I have been trying to learn about LINUX for 10 years and feel like a total dill as I cannot get a full grasp of linux.
I have tried -DEBIAN - MANDRAKE - REDHAT - UBUNTU -KUBUNTU - FEDORA - XANDROS & A FEW OTHERS.
They all have good and bad features, it seems to me the most flexiable, powerfull and usefull is DEBIAN ?????.

ken
I love Linux But I love the people more
waterwally
 
Posts: 28
Joined: 2005-09-08 09:23
Location: Australia

Postby Lavene » 2006-08-13 12:42

First of all let me say that I have no idea what might be the problem, so let's just start somewhere...

Here is a very basic /etc/apt/sources.list that I know works (I've just tested it) and that uses an Australian mirror:
Code: Select all
# STABLE
deb ftp://ftp.au.debian.org/debian/ stable main contrib non-free

# SECURITY
deb http://security.debian.org stable/updates main contrib non-free

Rename your existing one to something like 'sources.list.backup' and save the above as 'sources.list'. You need to be root to do that.

Then create the following text file:
Code: Select all
Acquire::::Proxy "false";


As root, save the file as /etc/apt/apt.conf

Then try to do:
Code: Select all
apt-get update

Please post the output.

Tina
Lavene
Site admin
 
Posts: 5099
Joined: 2006-01-04 04:26
Location: Oslo, Norway

Postby bluesdog » 2006-08-14 05:02

Looking at the output quoted on your second post, I'm curious to know what is in the /var/lib/apt/lists directory..

Do
Code: Select all
$ ls -l /var/lib/apt/lists
will ya?
User avatar
bluesdog
 
Posts: 1779
Joined: 2006-02-01 09:02
Location: Similkameen, British Columbia, Canada

Lavene

Postby waterwally » 2006-08-14 07:07

Thanks for your time...................ken

Have Changed sources.list to what u suggested and also created apt.conf file by cut and paste so I would get it right, result below


p4:~# apt-get update
Err http://security.debian.org stable/updates/main Packages
Could not connect to security.debian.org:80 (1.0.0.0). - connect (113 No route to host)
Err ftp://ftp.au.debian.org stable/main Packages
Could not connect to ftp.au.debian.org:21 (1.0.0.0). - connect (113 No route to host)
Err http://security.debian.org stable/updates/main Release
Could not connect to security.debian.org:80 (1.0.0.0), connection timed out
Err http://security.debian.org stable/updates/contrib Packages
Could not connect to security.debian.org:80 (1.0.0.0). - connect (113 No route to host)
Err http://security.debian.org stable/updates/contrib Release
Could not connect to security.debian.org:80 (1.0.0.0). - connect (113 No route to host)
Err http://security.debian.org stable/updates/non-free Packages
Could not connect to security.debian.org:80 (1.0.0.0). - connect (113 No route to host)
Err http://security.debian.org stable/updates/non-free Release
Could not connect to security.debian.org:80 (1.0.0.0). - connect (113 No route to host)
Err ftp://ftp.au.debian.org stable/main Release
Could not connect to ftp.au.debian.org:21 (1.0.0.0), connection timed out
Err ftp://ftp.au.debian.org stable/contrib Packages
Could not connect to ftp.au.debian.org:21 (1.0.0.0). - connect (113 No route to host)
Err ftp://ftp.au.debian.org stable/contrib Release
Could not connect to ftp.au.debian.org:21 (1.0.0.0). - connect (113 No route to host)
Err ftp://ftp.au.debian.org stable/non-free Packages
Could not connect to ftp.au.debian.org:21 (1.0.0.0), connection timed out
Err ftp://ftp.au.debian.org stable/non-free Release
Could not connect to ftp.au.debian.org:21 (1.0.0.0), connection timed out
Failed to fetch ftp://ftp.au.debian.org/debian/dists/st ... ackages.gz Could not connect to ftp.au.debian.org:21 (1.0.0.0). - connect (113 No route to host)
Failed to fetch ftp://ftp.au.debian.org/debian/dists/st ... 86/Release Could not connect to ftp.au.debian.org:21 (1.0.0.0), connection timed out
Failed to fetch ftp://ftp.au.debian.org/debian/dists/st ... ackages.gz Could not connect to ftp.au.debian.org:21 (1.0.0.0). - connect (113 No route to host)
Failed to fetch ftp://ftp.au.debian.org/debian/dists/st ... 86/Release Could not connect to ftp.au.debian.org:21 (1.0.0.0). - connect (113 No route to host)
Failed to fetch ftp://ftp.au.debian.org/debian/dists/st ... ackages.gz Could not connect to ftp.au.debian.org:21 (1.0.0.0), connection timed out
Failed to fetch ftp://ftp.au.debian.org/debian/dists/st ... 86/Release Could not connect to ftp.au.debian.org:21 (1.0.0.0), connection timed out
Failed to fetch http://security.debian.org/dists/stable ... ackages.gz Could not connect to security.debian.org:80 (1.0.0.0). - connect (113 No route to host)
Failed to fetch http://security.debian.org/dists/stable ... 86/Release Could not connect to security.debian.org:80 (1.0.0.0), connection timed out
Failed to fetch http://security.debian.org/dists/stable ... ackages.gz Could not connect to security.debian.org:80 (1.0.0.0). - connect (113 No route to host)
Failed to fetch http://security.debian.org/dists/stable ... 86/Release Could not connect to security.debian.org:80 (1.0.0.0). - connect (113 No route to host)
Failed to fetch http://security.debian.org/dists/stable ... ackages.gz Could not connect to security.debian.org:80 (1.0.0.0). - connect (113 No route to host)
Failed to fetch http://security.debian.org/dists/stable ... 86/Release Could not connect to security.debian.org:80 (1.0.0.0). - connect (113 No route to host)
Reading Package Lists... Done
W: Couldn't stat source package list ftp://ftp.au.debian.org stable/main Packages (/var/lib/apt/lists/ftp.au.debian.org_debian_dists_stable_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list ftp://ftp.au.debian.org stable/contrib Packages (/var/lib/apt/lists/ftp.au.debian.org_debian_dists_stable_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list ftp://ftp.au.debian.org stable/non-free Packages (/var/lib/apt/lists/ftp.au.debian.org_debian_dists_stable_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://security.debian.org stable/updates/main Packages (/var/lib/apt/lists/security.debian.org_dists_stable_updates_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://security.debian.org stable/updates/contrib Packages (/var/lib/apt/lists/security.debian.org_dists_stable_updates_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://security.debian.org stable/updates/non-free Packages (/var/lib/apt/lists/security.debian.org_dists_stable_updates_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.
p4:~#
I love Linux But I love the people more
waterwally
 
Posts: 28
Joined: 2005-09-08 09:23
Location: Australia

Bluesdog

Postby waterwally » 2006-08-14 07:12

Thanks for not giving up on me......................ken

p4:~# ls -l /var/lib/apt/lists
total 4
-rw-r----- 1 root root 0 2006-08-15 02:58 lock
drwxr-xr-x 2 root root 4096 2006-08-05 03:57 partial
p4:~#
I love Linux But I love the people more
waterwally
 
Posts: 28
Joined: 2005-09-08 09:23
Location: Australia

BLUESDOG & LAVENE

Postby waterwally » 2006-08-14 07:19

I have tested my modem 192.168.1.1 with networktools and done a port scan and it tells me that ports 21, 22, 23, 80 are all open.I have also checked with my ISP and they don't block any ports.
I love Linux But I love the people more
waterwally
 
Posts: 28
Joined: 2005-09-08 09:23
Location: Australia

BLUESDOG & LAVENE

Postby waterwally » 2006-08-14 07:34

I had another thought and did a port scan of 192.168.1.65 which is my computers address and it gave these results

ports open 22, 80, 111, 113, 967

It appears that port 21 is not open to 192.168.1.65 ?????????????

Don't know if I am helping or hindering with this sort of info
I love Linux But I love the people more
waterwally
 
Posts: 28
Joined: 2005-09-08 09:23
Location: Australia

Postby bluesdog » 2006-08-14 19:12

Found another possibilty.... What is output of
Code: Select all
$ cat /etc/resolv.conf


Or there may be something wrong with /var/lib/apt/lists/partial

Is there anything in there? do
Code: Select all
$ ls -l /var/lib/apt/lists/partial


This should be an empty folder, and I think should have the same file date as the /var/lib/apt/lists/lock file.

Try, as root,
Code: Select all
cp -R /var/lib/apt/lists/partial ~/partialbackup
rm -d /var/lib/apt/lists/partial
The first creates a backup in your home folder of your original /var/lib/apt/lists/partial folder, the second deletes the original..

(I'm groping about in almost total darkness here, but since there does not seem to be anything particularly weird/wrong with your network, or proxy settings etc., I figure there must be a corrupt file somewhere...)

Don't give up! The answer is probably so simple we'll slap our virtual foreheads.. :?

btw
I don't under stand how to do this "" Also check if you have set environmental variable http_proxy. This can override apt.conf proxy setting
The printenv command told us there wasn't any http_proxy set in environment
User avatar
bluesdog
 
Posts: 1779
Joined: 2006-02-01 09:02
Location: Similkameen, British Columbia, Canada

Postby ajdlinux » 2006-08-14 21:17

I've had this problem before and it's usually come from wrong name servers or DHCP settings. Have a look at those.

BTW I recommend http://mirror.linux.org.au/debian over http://ftp.au.debian.org/debian. PlanetMirror is rather slow and refuses connections.
Jabber: xmpp:ajdlinux@jabber.org.au
Spammers, email this: ajdspambucket@exemail.com.au
ajdlinux
 
Posts: 2481
Joined: 2006-04-23 09:37
Location: Port Macquarie, NSW, Australia

Next

Return to Installation

Who is online

Users browsing this forum: No registered users and 0 guests