SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-08-22 00:05:50

kosmos890
#! Member
Registered: 2012-05-01
Posts: 76

[SOLVED] Post installation script and TP-LINK wireless adaptor

I installed Crunchbang 10 bpo.
I connect to the internet with TP Link WN723N Mini USB wireless network adaptor
(firefox and synaptic package manager works) but when I run the post-installation script I have the
message :

Failed to connect to package repository!

  This script requires a working internet connection. Please configure
  your internet connection, then hit any key to continue, else hit "q"
  to quit.

Last edited by kosmos890 (2012-08-22 00:38:15)

Offline

Be excellent to each other!

#2 2012-08-22 00:12:06

pidsley
Window Mangler
Registered: 2012-05-23
Posts: 1,752

Re: [SOLVED] Post installation script and TP-LINK wireless adaptor

Please type this in a terminal and report the result:

ping -c3 www.google.com

(you're telling me you have a working internet connection, but the post-install script thinks you don't, right?)

Last edited by pidsley (2012-08-22 00:13:37)

Offline

#3 2012-08-22 00:25:21

kosmos890
#! Member
Registered: 2012-05-01
Posts: 76

Re: [SOLVED] Post installation script and TP-LINK wireless adaptor

km@kms:~$ ping -c3 www.google.com
PING www.google.com (173.194.35.17) 56(84) bytes of data.
64 bytes from www.l.google.com (173.194.35.17): icmp_req=1 ttl=56 time=64.5 ms
64 bytes from www.l.google.com (173.194.35.17): icmp_req=2 ttl=56 time=69.1 ms
64 bytes from www.l.google.com (173.194.35.17): icmp_req=3 ttl=56 time=69.5 ms

--- www.google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 64.572/67.738/69.526/2.244 ms
km@kms:~$ 

Offline

#4 2012-08-22 00:30:27

pidsley
Window Mangler
Registered: 2012-05-23
Posts: 1,752

Re: [SOLVED] Post installation script and TP-LINK wireless adaptor

OK, this is a known issue with the post install script's internet connection test. Here's how to bypass the test.

Edit the file that does the checking:

gksudo geany /usr/lib/lib-cb-welcome/check-internet-connection

Find this line (the first one, not the second one):

IS=`/bin/ping -c 1 ftp.debian.org | grep -c "64 bytes"`

Comment it out, and put a new line after it:

#IS=`/bin/ping -c 1 ftp.debian.org | grep -c "64 bytes"`
IS=3

(edit) this is the lazy way, a better way would be to change the line to:

IS=`/bin/ping -c 1 www.google.com | grep -c "64 bytes"`

save the file, and run the cb-welcome script again:

cb-welcome

Last edited by pidsley (2012-08-22 00:36:57)

Offline

#5 2012-08-22 00:37:49

kosmos890
#! Member
Registered: 2012-05-01
Posts: 76

Re: [SOLVED] Post installation script and TP-LINK wireless adaptor

@pidsley
Thanks thanks It works!

Offline

#6 2012-08-22 00:38:54

pidsley
Window Mangler
Registered: 2012-05-23
Posts: 1,752

Re: [SOLVED] Post installation script and TP-LINK wireless adaptor

You're welcome, and thanks for marking your thread [solved].

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo