LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 03-05-2007, 08:00 PM   #1
calande
Member
 
Registered: Oct 2005
Distribution: Ubuntu
Posts: 165

Rep: Reputation: 15
Updating with no connection ?


Hi, I have Ubuntu at home on my desktop computer but I have no access to the Internet. I'm writting from a University campus. I'd like to know if I can update my Ubuntu using an USB Flash key. How can I update my Ubuntu without a direct connection to the Internet?
Thanks,
 
Old 03-05-2007, 09:55 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
The easiest way would be to just wait for the latest Ubuntu release, download the ISO, and update that way. Ubuntu will recognize the new Ubuntu version as soon as you put the CD in the drive and ask you if you want to update your system to this version. I only used it once or twice in the past, but I never had problems with it.

Beyond that, you could download the individual packages you need, save them to a USB flash drive, and then install them when you get back to your Ubuntu machine. But the problem there would be figuring out exactly which ones you need, and then of course the tedious process of downloading them all manually.

There is probably a better way to do it, but somebody with more Ubuntu experience would need to fill in the blanks there.
 
Old 03-05-2007, 11:26 PM   #3
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
It would be pretty tough to figure out what packages have updates without a connection. First you have to set up repositories in your /etc/apt/sources.list, then with an internet connection you have to issue command:

sudo apt-get update

To get package information from all your repositories in the /etc/apt/sources.list which should have an entry for updates. Then you would open up Synaptic and on the left there should be some sub categories of packages like "Installed, Not installed, Installed upgradeable", the Installed upgradeable list will tell you which version of package that has an update and the updated package version available.
If you can somehow get that list, then you should be able to download the packages from the URL in the update source in /etc/apt/sources.list onto a pen/thumb drive and make a directory in /home or /opt or separate data partition (wherever) and add that directory to your /etc/apt/sources.list and go back to Synaptic which will still have the same list of updates even if it was taken off-line and mark all the packages you acquired and select "Apply". Synaptic will refer to your local repository first. You can also probably put the packages in /var/cache/apt/debs without making a separate local entry in the /etc/apt/sources.list.
Here is a link to help setting up sources.list:

http://ubuntuguide.org/wiki/Ubuntu_E...a_repositories
 
Old 03-05-2007, 11:37 PM   #4
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
PS:

Updating is actually not really needed for the average home computer user, it is more of a great deal for a server that can't afford intrusions and the likes. Everybody feels they need to be fully updated but don't actually know why? Most home computer users don't have anything to worry about if their distribution is an "Official" or "Final" release version as these are usually pretty stable and usually work flawlessly without tampering. Some distributions do have issues, like my Fedora where there was a lot of bugs that affected some users with certain hardware. But I personally don't think you have much to worry about with a Debian distribution, especially if they follow Debian's roll model. If you do have something not working properly on your system, just try and figure out which package is giving the problems and go directly to the update site listed in the link I gave in the prior post to see if there is an update for that package by comparing the version number to the one installed and download it and install it from the pen drive with command:

dpkg -i /media/pen_drive/package_name

Or dpkg -u, for update, not sure as I'm in Fedora right now but read the man page for dpkg.

Last edited by Junior Hacker; 03-05-2007 at 11:43 PM.
 
Old 03-06-2007, 03:55 AM   #5
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
I have moved this to the Ubuntu forum as it's more suited there than here
 
  


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
Internet connection timeout on Fedora Core 5 using USB connection mike1111 Linux - Networking 0 07-23-2006 09:44 PM
wireless connection ok with knoppix dvd , no connection with installed fedora 4 docharmony Linux - Wireless Networking 2 11-27-2005 04:33 PM
LDAP SERVER - CLIENT CONNECTION on suse 9.2 - connection error nicolasdiogo Linux - Networking 4 03-01-2005 01:43 PM
Updating Slack connection speed question. DeadPenguin Slackware 7 12-03-2004 12:13 AM
Updating DHCP - dynamic inet connection won't update lrt2003 Slackware 2 05-26-2004 12:57 AM

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

All times are GMT -5. The time now is 03:35 PM.

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