[plug] Debian 3.0

James Bromberger james at rcpt.to
Sat Jul 20 11:10:54 WST 2002


On Sat, Jul 20, 2002 at 10:36:29AM +0800, Brian Tombleson wrote:
> > OK. It has happened. Debian 3.0 has been set free to roam a PC near you..
> 
> Ok debiangurus .. so how do we upgrade since my stable (ex potato pointing
> at the default debian.org servers) apt-get update/upgrade says this:
> 
> The following packages have been kept back
>   adduser apache apache-common apt apt-proxy base-passwd bash bc bind
> binutils bsdmainutils bsdutils
> <snip>
>   traceroute update util-linux vflib2 webalizer wget whiptail whois wvdial
> xlib6g zlib1g
> 26 packages upgraded, 0 newly installed, 0 to remove and 180 not upgraded.
> Sorry, but the following packages have unmet dependencies:
>   debianutils: PreDepends: libc6 (>= 2.2.4-4) but 2.1.3-20 is to be
> installed
> E: Internal Error, InstallPackages was called with broken packages!
 

Well, you'll want to to:
	apt-get update
	apt-get dist-upgrade



A 'dist-upgrade' is an upgrade that also tells apt to pull in the 
dependencies for installed packages that are themseleves not installed yet. 
If you have multiple machines, I would recommend that you set up a proxy cache 
on your network, and then use a local mirror to get it. Your choisces are:
	http://ftp.au.debian.org/debian/
	http://ftp.wa.au.debian.org/debian/

If you are not using transparent proxying to your proxy cache, then:
	su -
	HTTP_PROXY=http://proxy:3128/
	export HTTP_PROXY
	apt-get update
	apt-get dist-upgrade -d

Where 'proxy' is your proxy machine on your network. The 'dist-upgrade' 
pulls in the extra packages, and the '-d' will just download, and not install. 
This means that while your first machine sucks down hundreds of MB or 
packages, you can get on with your lift and come back ready to install 
local packages.

If you want to do it all at once now, just
	apt-get dist-upgrade

This should work smoothly. If you want to do it slowly, then you can pick and 
choose the packages you want to install. I would start with installing the 
latest 'dpkg' and 'apt' packages and their dependencies: 
	apt-get install dpkg apt

since these packages are obviously critical to installing packages. After 
they are in, you can then dist-upgrade, or continue doing package-by-package 
upgrade (using apt-get install <blah>).

If at any stage it bombs out, then you will want to tell the system to 
keep configururing the packages it was installing at that time: do a 
`dpkg --configure -a`.

Some of the more ciritical packages are:
	libc6 lilo kernel-image-* login pam


For the quickest install, the PLUG meeting on Monday gives you 10 megabit 
ethernet access to a mirror. Suck down all the debs, and then take your 
machine home and distriute these debs around the rest of your network
	turn up at UCC
	edit /etc/apt/sources.list to use ftp.uwa.edu.au
	apt-get update
	apt-get dist-upgrade -d
	either upgrade this machine now, or later
	go home
	log in to one of your other machines you want to upgrade
	su -
	cd /var/cache/apt/archives
	rsync -e ssh you at mainmachine:/var/cache/apt/archives/*.deb .

This will copy your packages to the new machine from the one you updated at 
UCC using rsync-over-ssh. Its a cheats way of quickly updating a few machines.
You'll still have to apt-get update, but when you go to download, these new 
packages will already be in the cache. There are plenty of tools to help with 
archives: apt-proxy, apt-zip, etc. To find out the apt utilities, do:
	apt-cache search apt-


The first one to use is probably apt-howto-en. Check the documentation in 
/usr/share/doc/apt/.

  James

-- 
 James Bromberger <james_AT_rcpt.to> www.james.rcpt.to
 Remainder moved to http://www.james.rcpt.to/james/sig.html
 The Australian Linux Technical Conference 2003: http://www.linux.conf.au/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <http://lists.plug.org.au/pipermail/plug/attachments/20020720/7caf0fca/attachment.pgp>


More information about the plug mailing list