AptGetUpgrade
When running apt-get upgrade for the first time on a vanilla rev3+fix install, you are likely to run into the following issues:
- tar complaining about dates in the future;
- kernel upgrade breaks the system.
Below you may find workarounds for these.
Tar dates in the future
Just set up your date and time on the device. As you're going to do apt-get upgrade, we can assume you already have some kind of an Internet connection, so you can run ntpdate:
ntpdate ntp.ubuntu.com
Kernel upgrade breaks the system
Some background: dpkg (the back-end responsible for installing Debian packages, also during an upgrade) doesn't handle FAT /boot partitions. The outcome is that it installs all the modules (on an ext2 partition) and then, when trying to install a new kernel package, it fails; after a reboot (new) modules do not match the (old) kernel and the system becomes unusable.
To fix this the kernel upgrade issue - well, just don't upgrade the kernel. You can use apt-pinning for that:
- create the /etc/apt/preferences file;
- add this to the end of that file:
Package: linux-image-2.6.24-openmoko-gta02 Pin: version 20080903.git2ea34171-2 Pin-Priority: 1001
Now apt-get will know not to upgrade the kernel. You should be able to safely upgrade your system:
apt-get update && apt-get upgrade
It is a workaround, a better fix is being worked on!
