LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > MEPIS
User Name
Password
MEPIS This forum is for the discussion of MEPIS Linux.

Notices


Reply
  Search this Thread
Old 09-04-2005, 10:51 PM   #1
Farquar210
LQ Newbie
 
Registered: Jan 2004
Location: Tasmania, Australia
Distribution: Red Hat Enterprise Workstation, Debian, Simply Mepis, Damn Small Linux
Posts: 29

Rep: Reputation: 15
Question Apt-get and Kpackage


Hi, All,
I installed Mepis 3.3 a few days ago, and it seems ok. But, when I try to use apt-get or Kpackage, I get errors saying that the attempts are timing out. I re-did the sources.list, and tried again. It is still timing out. Here are the error messages I get:

root@2[stevesmith]# apt-get update
Err ftp://ftp.wa.au.debian.org testing/main Packages
Could not connect to ftp.wa.au.debian.org:21 (1.0.0.0), connection timed out
Err http://ftp.at.debian.org testing/main Packages
Could not connect to ftp.at.debian.org:80 (1.0.0.0), connection timed out

This is happening no matter what sites I try to use! I've tried everything I can think of, including changing the cache size; nothing works. Any ideas? is it possible that a port apt-get needs to use hase been closed? How do I check? Incidentally, I don't think it has anything to do with guarddog; I disabled it and ran apt-get, and it still happened.

Thanks,

Steve

 
Old 09-05-2005, 01:14 AM   #2
BittaBrotha
Member
 
Registered: Jan 2002
Location: Third Stone from the Sun
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800

Rep: Reputation: 31
They both work when I click on them in a browser, so they are active.

Maybe going to Mepis site and finding different sources to use.
 
Old 09-05-2005, 04:35 AM   #3
Farquar210
LQ Newbie
 
Registered: Jan 2004
Location: Tasmania, Australia
Distribution: Red Hat Enterprise Workstation, Debian, Simply Mepis, Damn Small Linux
Posts: 29

Original Poster
Rep: Reputation: 15
Hi, Bitta,
Thanks for responding! I've been trying different sites, debian and mepis, for 3 days; you can reach them by browser, but not apt-get, kpackage, or gftp. I've been trying to think of what can be blocking them, but I'm new to all of this, and I'm way out of my league(my computers have been in storage for the past year, so I haven't been able to work with linux much). Everyone I know that uses apt says it should work straight out of the box; mine doesn't.
 
Old 09-05-2005, 09:40 AM   #4
runlevel0
Member
 
Registered: Mar 2005
Location: Hilversum/Holland
Distribution: Debian GNU/Linux 5.0 (“Lenny”)
Posts: 290

Rep: Reputation: 31
Re: Apt-get and Kpackage

Quote:
Originally posted by Farquar210
Hi, All,
I installed Mepis 3.3 a few days ago, and it seems ok. But, when I try to use apt-get or Kpackage, I get errors saying that the attempts are timing out. I re-did the sources.list, and tried again. It is still timing out. Here are the error messages I get:

root@2[stevesmith]# apt-get update
Err ftp://ftp.wa.au.debian.org testing/main Packages
Could not connect to ftp.wa.au.debian.org:21 (1.0.0.0), connection timed out
Err http://ftp.at.debian.org testing/main Packages
Could not connect to ftp.at.debian.org:80 (1.0.0.0), connection timed out
Seems to be a firewall problem.

Try this to be sure:

Code:
iptables -F
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
Try this first and make another connection attempt.
It could also be that the Debian server where temporarily out of line or simply overloaded, both things can result in timeouts.

Quote:
Incidentally, I don't think it has anything to do with guarddog;
Bad thought. It has. I didn't saw this as I first read your post. Guarddog is the culprit.
Get a better firewall, not a good one, get The FIREWALL(TM):
Firestarter, n00b-proof, dead easy to setup, powerfull, grafic, allows real-time management, systray aware for both Gnome and KDE...
They already owe me a beer case for advertising...


Last edited by runlevel0; 09-05-2005 at 10:12 AM.
 
Old 09-05-2005, 11:45 AM   #5
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 627

Rep: Reputation: 31
Hi,
have a direct access to internet or you go thru a proxy ?
if last is the case you must precise it in the apt.conf
in my case ( i have a direct access) this is my apt.conf

APT:efault-Release "unstable";
APT::Cache-Limit 10000000;
APT::Get::Purge;
Acquire::cdrom::Mount "/mnt/cdrom";
Acquire::http::Proxy "http://bela:xxxxxx@172.19.10.200:8080";;

bela is the name and xxxxxx the passwd required by my proxy

best regards
bela
 
Old 09-06-2005, 04:23 AM   #6
Farquar210
LQ Newbie
 
Registered: Jan 2004
Location: Tasmania, Australia
Distribution: Red Hat Enterprise Workstation, Debian, Simply Mepis, Damn Small Linux
Posts: 29

Original Poster
Rep: Reputation: 15
Hi,
It seems to be DNS problems; if I swap the URLs for IP addresses, it works (for the most part). I am still receiving a few errors, from the Mepis site mostly, but I think they may be problems with the sites. I have ADSL, and no proxy that I am aware of

Steve.
 
Old 09-07-2005, 08:10 PM   #7
tammac
LQ Newbie
 
Registered: Feb 2005
Location: United States -KY
Distribution: FC 4 / Mepis 3.3.1
Posts: 15

Rep: Reputation: 0
DNS problems

Hi,

Actually, there are quite a number of folks reporting problems with domain name resolve issues in apt, Firefox, and / or Synaptic under Mepis. No real reason uncovered as yet but it happens mostly with people using an aDSL connection to the Internet. Yes, IP addresses will solve the problem *if* you can figure out all the IP addresses and type them instead of domain names.

Very puzzling at this time.

-tammac
 
Old 09-09-2005, 10:41 AM   #8
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
MEPIS sorces.list DNS error workaround

I am running SimplyMEPIS; but using cable, so I don't have your error problems. However, I thought writing the following bash snippet was interesting. I tested it by pasting it into a "Super User Terminal" & it worked fine -- the resulting /etc/apt/sources.test was just what I intended.
Code:
# Copyright (c) 2005 by f.a.archibald.iii -- all rights reserved
# Use at your own risk
# *** As root ***

# Set variables
LIST=/etc/apt/sources.list
ORIG=/etc/apt/sources.orig
TEST=/etc/apt/sources.test

# Make a back up & a test file
cp  $LIST $ORIG
cp  $LIST $TEST

# Run 
echo -e "\n\n\n# Special IP lines\n"  >> $TEST
for H in `awk '$1 ~ "deb" {print $2}' $TEST  \
        | awk -F/ '{print $3}'               \
        | grep -v "^$"  | uniq                 `
do  IP=`host $H  | head -1  | awk '{print $4}'`  ; 
    SED="sed -nes/$H/$IP/p  $TEST"; 
    $SED >> $TEST; 
    echo >> $TEST; 
done

# Check results
less $TEST
When you are sure you are happy w/ the results:
Code:
mv  $TEST $LIST
Of course if you get buyer's remorse:
Code:
cp  $ORIG $LIST
If you are interested in how it works, RTFMs, then ask Q's. I have deliberately broken lines & added extra spaces to make it (relatively) easy to read.

Last edited by archtoad6; 09-12-2005 at 07:23 PM.
 
Old 09-11-2005, 08:21 PM   #9
Farquar210
LQ Newbie
 
Registered: Jan 2004
Location: Tasmania, Australia
Distribution: Red Hat Enterprise Workstation, Debian, Simply Mepis, Damn Small Linux
Posts: 29

Original Poster
Rep: Reputation: 15
Hi, Rick,
Thanks for your response! I'm going to give that snippet a try. If I could get cable I would, but aDSL is the fastest internet available where I live in Tasmania. As it turns out, I believe my probs were being caused by my Service Provider! Over the weekend, Their DHCP server smoked; I called them to see what was happening, and the tech had me hook straight into one of their DNS servers. I'm still having a few probs connecting with a site or 2, but the resolve issues are gone. Now, if I could only quit getting 'no such site' errors when I try to use apt-get update to connect with the Mepis update site and the Nerim site.....

Thanks,

Steve



Last edited by Farquar210; 09-11-2005 at 08:24 PM.
 
Old 09-12-2005, 07:29 PM   #10
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Ouch!

Found a bunch of errors in my code, edited them out, tested WAY more throughly.
Use the version dated: "09-12-2005 at 06:23 PM"

Glad I looked again.
 
Old 09-12-2005, 08:45 PM   #11
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775

Rep: Reputation: 86
Check out the "upgrade problems" message on Mepis Lovers.
 
Old 09-12-2005, 09:58 PM   #12
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Here is the relevant part:
Quote:
This is from mos and cblue:

All users of Mepis need to edit their /etc/apt/sources.list file using a text editor as root (or su) and delete the apt sources for the non-us debian repos.

Also, change the ftp.us.debian.org repos to read ftp.debian.org instead.

After Debian released their Sarge distro, they decided to do away with the non-us repos and now all Mepis users will get apt-get update errors unless they take the non-us repositories out of their sources.list file.

See this topic too, for more help and info.
Here is some code that should save a manual edit:
Code:
# Copyright (c) 2005 by f.a.archibald.iii -- all rights reserved
# Use at your own risk
# *** As root ***

# Set variables
LIST=/etc/apt/sources.list
ORIG=/etc/apt/sources.orig
TEST=/etc/apt/sources.test

# Make a back up & a test file
cp  $LIST $ORIG
cp  $LIST $TEST

# Run
grep -v non-us  $ORIG          \
| sed '/^#\?deb/ s,ftp.us,ftp,' > $TEST

# Check results
less $TEST
diff $ORIG $TEST  | less
As above, when you are sure you are happy w/ the results:
Code:
mv  $TEST $LIST
Of course if you get buyer's remorse:
Code:
cp  $ORIG $LIST

Last edited by archtoad6; 09-12-2005 at 10:43 PM.
 
  


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
Okay to use Kpackage? MikeZila Slackware 2 10-02-2004 12:21 AM
Kpackage in RH 9 xprometeus Linux - Newbie 3 07-19-2003 04:15 PM
help me with kpackage please Eightball Linux - Software 6 02-19-2003 12:57 PM
kpackage help! islandkid Linux - General 2 05-18-2002 12:32 AM
KPackage Stephanie Linux - General 1 07-10-2001 10:44 PM

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

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