LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 02-13-2012, 05:51 PM   #1
Zzabe
LQ Newbie
 
Registered: Feb 2012
Location: England
Distribution: Debian 6.0.4 (squeeze)
Posts: 3

Rep: Reputation: Disabled
Debian Squeeze installed without internet connection, can't apt-get


I installed Debian Squeeze LXDE from CD. I don't know how to load PPP before I install the OS so I couldn't use sakis3g to start my mobile broadband connection and therefore the installer couldn't connect to the net while installing.
Once the OS was up and running I installed PPP (from the CD) and sakis3g kindly connected my mobile modem to the internet.
Sadly now when I try to apt-get something I get this:

# apt-get install gedit
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package gedit

My sources.list looks like this because I have already removed the # from the second two deb lines, as these were #d out by the installer, and I have added the google line as I want to eventually install chrome:

#

# deb cdrom:[Debian GNU/Linux 6.0.4 _Squeeze_ - Official i386 xfce+lxde-CD Binary-1 20120128-12:53]/ squeeze main


deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main

# squeeze-updates, previously known as 'volatile'
# A network mirror was not selected during install. The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
# deb http://ftp.debian.org/debian/ squeeze-updates main
# deb-src http://ftp.debian.org/debian/ squeeze-updates main
deb http://dl.google.com/linux/deb/ stable main non-free

I downloaded the .deb for chrome and used dpkg to install it but it didn't download the dependancies and aptitude said to resolve the dependancies I must uninstall chrome, so I did.

I need help with either making apt-get work properly or installing/enabling PPP from the command line and using sakis3g to connect my modem while the system is booted from the CD before a re-install - which I'm happy to do if it results in a more usable system.

Debian 6.0.4 (squeeze)
debian-6.0.4-i386-xfce+lxde-CD-1.deb
NEC Versa M300
Intel Celeron 1.6GHz Processor
 
Old 02-14-2012, 02:51 PM   #2
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
Did you update repositories info after changing sources? As in 'apt-get update'?
 
Old 02-14-2012, 03:36 PM   #3
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
This is what your sources.list should look like if you actually want to update and install anything from Debian.
Code:
###### Debian Main Repos
deb http://ftp.debian.org/debian/ squeeze main contrib non-free
# deb-src http://ftp.debian.org/debian/ squeeze main contrib non-free

###### Debian Update Repos
deb http://security.debian.org/ squeeze/updates main contrib non-free
deb http://ftp.debian.org/debian/ squeeze-proposed-updates main contrib non-free
# deb-src http://security.debian.org/ squeeze/updates main contrib non-free
# deb-src http://ftp.debian.org/debian/ squeeze-proposed-updates main contrib non-free
After you have done this do
Code:
apt-get update
and then
Code:
apt-get upgrade

Last edited by k3lt01; 02-14-2012 at 03:38 PM.
 
Old 02-14-2012, 04:28 PM   #4
Sidicas
Member
 
Registered: Apr 2004
Distribution: Debian GNU/Linux
Posts: 47

Rep: Reputation: 6
Note the missing ftp.debian.org.

Somewhere during the installation there is a section where you select which Debian mirrors to use.. Immediately after that it tries to pull package lists from the mirrors you choose.. If there's no internet connection, you might have been forced to skip that entire section and simply not have had the mirror URLs put into your sources list.

So just add it manually, problem solved.

Last edited by Sidicas; 02-14-2012 at 04:29 PM.
 
Old 02-15-2012, 11:31 AM   #5
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,884
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
Should look something like:
then run
Code:
apt-get update
followed by
Code:
apt-get install gedit
Code:
##################
## Debian Stable  ##
##################
#Stable 
deb http://ftp.us.debian.org/debian/ squeeze main contrib non-free 
#Stable Sources
deb-src http://ftp.us.debian.org/debian/ squeeze main contrib non-free 

#Security Updates  http://www.debian.org/security/
deb http://security.debian.org/ squeeze/updates main contrib non-free 

# Please note: The debian-volatile project has been discontinued with the Debian Squeeze release.
# See http://lists.debian.org/debian-volatile-announce/2011/msg00000.html for details.
# Debian Volatile is now squeeze-updates
# Squeeze-updates 
deb http://mirrors.kernel.org/debian/ squeeze-updates main contrib non-free
For more info see:
SourcesList - Debian Wiki : http://wiki.debian.org/SourcesList
Official Debian mirrors http://www.debian.org/mirror/list
 
  


Reply



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
Inconsistant wired ethernet connection only with Debian Squeeze Elixer Debian 3 01-10-2012 09:58 PM
Internet connection disappeared after updates on Debian Squeeze GuiRitter Linux - Networking 1 01-03-2012 09:09 PM
Debian Squeeze - apt-get running by itself in the background austinium Debian 9 11-23-2010 11:33 AM
Upgraded to Debian Squeeze, and now apt-get has gone insane Changes Linux - General 3 10-26-2009 10:52 AM
Debian Squeeze installer found my wlan but not available once installed sonichedgehog Linux - Networking 6 08-13-2009 08:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

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