LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-01-2009, 03:01 PM   #1
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Question Simple way to update all packages after a fresh install with no network?


I've been kind of spoiled by Slackware, where updating an installation without networking is just a matter of storing all the updated packages somewhere (directory, CD, USB, etc.) and doing a:
Code:
upgradepkg *.tgz
I'm trying to figure out how to achieve similar simplicity on Ubuntu (specifically, Ubuntu 8.10). I know how to update the packages on the live CD itself (and have done it several times), but in this particular case I need to install using the unedited, official CD.

I'm currently looking at this (and will set up a VirtualBox image to try it out), but it seems to me like the actual packages are never even mentioned in the article, only the meta-data. I need to be able to do an apt-get update/upgrade on this box and have it use the updated packages which I will have stored on a mounted filesystem. Any help with this would be greatly appreciated.
 
Old 03-01-2009, 03:25 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
surely you can just use dpkg?
 
Old 03-01-2009, 05:25 PM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Original Poster
Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Yeah, I guess you're right. Will the end result be equivalent? I've only used DPKG to do individual package installs, never for a crapload of packages such as this. I've got a fresh install going in VirtualBox. Right now I've got this running on it:
Code:
sudo apt-get --download-only dist-upgrade
I'm thinking this will give me all the packages I need in /var/cache/apt/ for the next step, right?
 
Old 03-02-2009, 01:51 AM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Original Poster
Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
My test in VirtualBox went really well AFAICT.

After the command above, I took all the .deb files from /var/cache/apt/archives and did a:
Code:
sudo dpkg -i *.deb
When the smoke cleared, everything seemed in order, except for a few broken dependencies (one was libc6 and the rest were OpenOffice.org-related). I took care of those with a:
Code:
sudo apt-get -f upgrade
They were fixed from the cache (apt-get didn't download anything), so I should be good when I do this on the real system. I'm gonna do a few more tests in VirtualBox to make sure everything is fine, and if so then I'm all set to do this for real.

Thanks for the tip, acid_kewpie. I would have wasted a lot of time if you hadn't nudged me in the right direction. Doing this with DPKG is kinda cool, felt like I was on Slackware for a minute. Of course, I wouldn't have had these broken dependencies on Slackware!
 
Old 03-03-2009, 02:01 PM   #5
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Original Poster
Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
It went great, "the user is pleased and there exists harmony in the world". I'm just posting a note to say that I should have known I wouldn't be able to do a "sudo apt-get -f upgrade" at the location, since there was no Internet to first do the "sudo apt-get update". So I instead re-did a "dpkg -i" on the packages which were reported as broken and then it was all good.

Last edited by win32sux; 03-03-2009 at 02:02 PM.
 
  


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
Fresh install, lib packages missing for KDE Romanus81 Slackware 6 02-23-2008 10:06 PM
yum update gives 'Error: Missing Dependency:" on fresh install tightface Linux - Software 4 07-04-2007 02:10 AM
Fresh Install FC3, No Network cdegroat Linux - Networking 2 06-24-2005 11:49 AM
Mandrake Update/Install Packages/Remove Packages wslyhbb Mandriva 2 03-15-2004 09:43 AM
no network after fresh Slack 9 install major.tom Slackware 4 08-04-2003 04:01 PM

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

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