Well, that was a faff and a half [entries|reading|network|archive]
simont

[ userinfo | dreamwidth userinfo ]
[ archive | journal archive ]

Thu 2005-06-09 09:44
Well, that was a faff and a half

I upgraded my home Linux box to Debian 3.1 last night.

For a start, the upgrade process helpfully decided to uninstall about 75 packages that must have conflicted with new libraries or something (of course it didn't tell me why they had to be uninstalled, what a silly suggestion). Little things I probably wasn't using in the first place, such as Firefox, xpdf, gv, and my print server. Of course, updated packages of all of those are available in Debian 3.1, but did it stop to think I might like them upgraded rather than removed? Did it bobbins.

As if that wasn't enough, it then proceeded to uninstall them in the wrong order. First it took out scrollkeeper, whatever that is (I looked at the package description and was left almost none the wiser); then it tried to uninstall a couple of other packages whose post-remove scripts turned out to depend on scrollkeeper, so the entire process stalled at that point and had no idea how to continue. Eventually I had to go grubbing around /var, find the post-remove scripts and hack the scrollkeeper lines out of them. It also didn't help that dpkg helpfully avoided showing me any meaningful error message such as ‘scrollkeeper: command not found’, and instead I had to content myself with ‘post-remove script returned status 127’. I eventually had to strace dpkg to work out what the problem was. (And I can hear Mr Prosser in my head now saying ‘That's the display department’.)

So. Having fixed the post-remove scripts, the install (or rather the bulk uninstall) was ready to continue. Next headache was the rather feeble checking for modified configuration files. If I've actually modified a file in /etc, I do appreciate the Debian upgrade process telling me so and offering to let me keep the old version, update to the new version, look at the differences between them or escape to a shell and sort it out. That's fine. But for goodness' sake I could have done without being given this choice for five times as many configuration files I hadn't modified as for ones I had! I don't know what was wrong with its detection, but it was definitely screwy.

Any Debian aficionados reading this chronicle of pain might have guessed by now that I was using apt-get dist-upgrade rather than the choice of serious power users, dselect. Every so often during the process I did wonder whether the apt detractors had a point, and attempted to use dselect to sort out the weird dependency mazes instead. I gave up after I discovered that I couldn't get it to explain to me why apt was doing what it was doing, since when I tried to make dselect do the same thing it reported a completely different tangle of strange dependencies and conflicts, but just as impenetrable.

Eventually, after much continued annoyance, I was finally left back at a root prompt. Time to see if I can reinstall the ‘helpfully’ removed Firefox. But no: it apparently can't install mozilla-firefox because it depends on $library ‘which is not going to be installed’. Huh? Normally this is precisely the nice thing about apt-get: if the package you asked for depends on five obscure libraries you haven't got, it hunts them down for you and installs them as well. Now, suddenly, it's going all innocent and saying ‘not my problem, guv, you didn't ask for that library’. So I tried explicitly installing those libraries too, in the fond hope that that might get me a marginally more helpful error message that told me why it was reluctant to install them. But no; instead it suddenly decided to cooperate after all, uninstalled another 25 almost unrelated packages, installed the libraries I wanted, and then installed Firefox. Hooray! Ish.

So now I had something roughly resembling a working system, only every so often I'd trip over an xpdf– or gv-shaped hole in it. In nearly all such cases, a quick apt-get install sorted the problem out without complaint: no mysterious package conflicts, no strange library incompatibilities, no problem at all. Leaving me wondering why on earth it had been so important to uninstall those packages at the beginning of the process!

I'll skip over the entirely separate headache that is GNOME 2, because it isn't really Debian's fault that GNOME 2 is like GNOME 1 only with all the useful bits removed. Debian thoughtfully put up a warning box telling me that my GNOME 1 configuration couldn't be converted because GNOME 2 couldn't do most of the things GNOME 1 could do. As it happened I knew this already (from experience with my work RedHat box), so I was more or less expecting pain in that area anyway.

Still, got there in the end. Now I have a mostly working Debian 3.1 system; only the fonts have all gone screwy. Whatever fonts Mozilla is using by default are horribly ugly, with lots of vertical strokes that obviously should be the same width coming out at different widths. My guess is that they're scalable fonts being rendered without useful hinting, perhaps because somebody expected them to be antialiased so didn't bother (in which case, I need to work out how to turn on antialiasing). Worse than that, though, the Pango automatic font selection in my own programs (i.e. GTK 2 Puzzles) is now returning fixed whenever I request a sans-serif font, irrespective of the size I asked for and also irrespective of the fact that fixed is monospaced rather than sans! For goodness' sake, if it had to fixate on a single font for everything it could at least have returned variable.

It's possible that I'm missing some vital font management package which was helpfully not installed for me; but I fear I'm not going to find out without grubbing through the Pango source to see how it's supposed to be working.

Finally … one of the reasons I was keen to upgrade to Debian 3.1 was because I expected it to have up-to-date libraries and compilers, thus allowing me to compile reasonably modern software. One particular thing I was interested to have a go with was ‘Rosegarden’, a piece of music software I'd been hearing good things about. And indeed, 3.1 is capable of compiling Rosegarden, and better still there's a pre-built package of it in unstable (which right now means I can just manually install it because all its library dependencies are satisfied by stable). But to add insult to injury, when I try to run Rosegarden, it forks off a second process which tries to open a weird sequencer thing in /dev, immediately dies because that device doesn't exist on my system, and brilliantly the main Rosegarden process sits there and waits for the second process to finish starting up, having not noticed that it's long since dead and never going to do so! This one's probably my own fault for installing a package out of unstable, I admit, but it did rather leave me wondering whether I'd got any benefit from all that pain.

I remember upgrading to Debian some time around 1998, because of its surprising tendency to Just Work and to get things right which other distributions got wrong. Either I had a very unlucky and unusual experience last night, or somewhere between then and now it has lost its way. Badly.

LinkReply
[personal profile] zotzThu 2005-06-09 08:51
My experience of Debian has improved a lot over the years. It's a very long time since anything like that's happened to me. I had hoped it was generally a thing of the past.
Link Reply to this
[identity profile] mjg59.livejournal.comThu 2005-06-09 08:54
The release notes specifically tell you to use aptitude for the upgrade, rather than apt-get.
Link Reply to this | Thread
[personal profile] simontThu 2005-06-09 09:07
Argh. If I'd known there were release notes, I might have read them! There's no obvious link to them from the front page of debian.org; even now I know they're there, I had to dig down through several links before I even found them. Another "Beware of the Leopard" moment :-/
Link Reply to this | Parent | Thread
[identity profile] mjg59.livejournal.comThu 2005-06-09 09:23
Not that I want to imply that the Debian press officer is crap or anything, but, uh, well.
Link Reply to this | Parent
[personal profile] emperorThu 2005-06-09 09:44
Hm. I clicked on "latest stable release" and there I was. "To upgrade from an older version of Debian...".

I'm not sure how to re-structure the front page to improve this.
Link Reply to this | Parent | Thread
[personal profile] simontThu 2005-06-09 09:50
It didn't occur to me to click on "latest stable release"; in fact I hadn't noticed it was even a hyperlink. I generally look for hyperlinks containing verbs, or words like "instructions", or things related to what I want to do, not random nouns that have something to do with what I'm about. Therefore my eyes were initially drawn to the next short paragraph: "If you'd like to start using Debian, you can easily obtain a copy, and then follow the installation instructions to install it." I read that bit, and decided it didn't relate to me because it was all about installing from scratch. If there'd been a bit next to that saying "Alternatively, if you're upgrading from an earlier release, do read the release notes or things might go horribly painfully wrong", I'd have noticed immediately.
Link Reply to this | Parent
[personal profile] sparrowsionThu 2005-06-09 09:49
There was a link to the release notes (and hence, after much burrowing as you say, to the relevant instructions—it took me a couple of goes to convince myself that I was barking up the right tree in trying to find them) in the release announcement (which is linked from the debian.org front page, and I picked up via debain-announce). I've not risked any of my machines yet, but seeing as the work box was installed as sarge-as-testing I'm not anticipating too many problems with that one at least….
Link Reply to this | Parent
[identity profile] meirion.livejournal.comThu 2005-06-09 08:56
i have to say i haven't experienced anything like that in the recent past.

either i'm more tolerant of misbehaving upgrades or you were just extremely unlucky.

-m-
Link Reply to this
[personal profile] emperorThu 2005-06-09 09:01
Did you follow the upgrade instructions? ISTR you're meant to use aptitude precisely because apt-get will do things like what you describe here...
Link Reply to this | Thread
[personal profile] simontThu 2005-06-09 09:09
No, because I didn't even know there were upgrade instructions in the release notes. apt-get dist-upgrade has always worked fine for me in the past, so I'd never previously had trouble from not reading release notes and it wasn't obvious that they were the first thing I should look for.

I'll read them now and see if they provide any useful information about how to sort out my remaining problems...
Link Reply to this | Parent | Thread
[identity profile] hsenag.livejournal.comThu 2005-06-09 09:25
I really don't understand why they didn't improve the apt-get dependency algorithm instead of making a whole new tool with the same interface but cleverer magic.. (I'm aware aptitude also has a GUI, but why couldn't they have built it on top of apt-get in a nicer way?)
Link Reply to this | Parent | Thread
[identity profile] fluffyrichard.livejournal.comThu 2005-06-09 09:32
Until just now, I'd assumed that that was what they'd done. Gosh.
Link Reply to this | Parent
[personal profile] pm215Thu 2005-06-09 09:08
the upgrade process helpfully decided to uninstall about 75 packages [like mozilla

As a side note, if apt-get ever says something like this the right move is to cancel whatever you asked for and try something different (usually installing some other stuff first). I take 'uninstall big lumps of userland' as an indication that its heuristics have come up with the completely wrong answer and you need to manually change the situation a bit so they can try again from a different starting point.

I agree entirely that it's crap that it doesn't work, and am unconvinced that putting another layer on top of apt-get is the right way to fix it either.

Link Reply to this
[identity profile] fluffymormegil.livejournal.comThu 2005-06-09 09:09
Hm. I've been having a great deal of trouble with GNOME apps in sarge; I don't actually run a GNOME desktop, vastly preferring icewm, but that should not make half my GNOME apps hang when they try to start up.
Link Reply to this
[identity profile] christhomas123.livejournal.comThu 2005-06-09 09:15
I'd just like to say...
...that's the best lj-cut EVER. ;o)
Link Reply to this | Thread
[personal profile] simontThu 2005-06-09 09:29
Re: I'd just like to say...
You think? I'm unconvinced that it beats this one :-)
Link Reply to this | Parent | Thread
[identity profile] christhomas123.livejournal.comThu 2005-06-09 09:35
Re: I'd just like to say...
No, this one's better. ;o)

Probably helps I read it in your diary at The Other Place first, and then was presented with the one line precis the second time...
Link Reply to this | Parent
[identity profile] aquarionical.livejournal.comThu 2005-06-09 09:17
I suspect you were unlucky somehow. I've been doing woody -> sarge (and testing -> sarge, though that wasn't much of a stretch) for the last couple of days and haven't had any of those problems
Link Reply to this
[personal profile] pm215Thu 2005-06-09 09:21
Oh yeah, the rosegarden stuff sounds like (a) kernel too old or missing some driver or something and (b) bug in rosegarden not handling that more gracefully. Note that the upgrade process doesn't upgrade your kernel for you even if you're using the stock kernel rather than a hand-rolled one -- check the release notes.
Link Reply to this | Thread
[personal profile] simontThu 2005-06-09 09:32
I always hand-roll my kernels, so yeah, I wouldn't have expected sarge to upgrade mine for me. sarge claims to provide 2.4.27, and I was already running 2.4.29, so I'd have expected to be roughly up to date. Granted that the rosegarden package came from unstable, but I'd have hoped that if it had a fundamental dependency on a newer kernel it might at least have said so somewhere...
Link Reply to this | Parent
[identity profile] keithlard.livejournal.comThu 2005-06-09 09:50
I feel your pain!

I too am quite familiar with the 'apt decides to remove large chunks of userland' problem, as well as 'so-and-so depends on libso-and-so, but it is too cool to be installed'. And any changes to GNOME invariably come at the cost of having to use terrifying fonts from the past, until you figure out what apt forgot to install (xfs?)

I like Rosegarden, although the UI widgets look disturbingly like early AWT or something. /dev/sequencer is where it expects to find your MIDI device (I don't have one, but I managed to persuade it to use an ALSA software sequencer in the end). Frankly though, I put this under the heading of 'ultimately not worth the hassle of getting to run'.

I think Debian is widely perceived as being rather backward (they might prefer the term 'conservative') but I still like apt (I'm old enough to remember the horror of trying to use RPMs without a dependency resolution system like yum, or for that matter trying to build things from source, which is a real good way to shorten your telomeres) and I like their ethical policy. The installer is frankly terrible, but that's no problem: I use a cheerful front end like Knoppix or Ubuntu to get a foothold on the box, then switch to the Debian repositories and dist-upgrade.

So I think overall Debian sucks slightly less, as long as you don't try to upgrade it...
Link Reply to this | Thread
[personal profile] simontThu 2005-06-09 09:56
Actually, Debian's from-scratch installer is one thing I do like about it! It's certainly not as shiny and polished as (say) RedHat's, but it does have strong virtues for the power user. In particular, the fact that the initial voodoo boot-disks-and-dead-chickens stage of installation is kept as short as humanly possible, installing a minimal base system and then letting you reboot to run that system and install packages from within it. That seems like an unusual and odd decision the first time you come to it from a more conventional installer, but rapidly proves its worth as soon as you try to do anything out of the ordinary, such as installing Debian on some kind of really weird machine that doesn't have video hardware or any kind of removable boot media: it means that the amount of the installer's functionality that you have to replicate by hand is kept as small as possible (and also detailed instructions are provided about how to do it all yourself), and then you can boot off the new system and do the rest of the installation in the normal way. I have such a machine doing firewall duty and would absolutely hate to have had to install anything other than Debian on it.
Link Reply to this | Parent
[identity profile] xraycb.livejournal.comThu 2005-06-09 10:05
This seems to be the sort of thing which happens when you install back-ported packages into stable. (which I presume firefox was)

This is often because the dependencies and scripts for backported packages are written in a half-arsed sort of way.


Link Reply to this
[identity profile] feanelwa.livejournal.comThu 2005-06-09 10:28
I have no idea what you're talking about, but yesterday somebody in my class told me he thought you were a god. If what you're talking about is a bad thing, this should at least cheer you up :)
Link Reply to this | Thread
[personal profile] simontThu 2005-06-09 11:00
That makes me feel vaguely guilty that I haven't done anything useful with my skills in weeks and weeks, having spent most of my spare time writing puzzle games (which is an even worse time sink than playing them, trust me!). And hearing things like that tends to make me worry a bit in case I start thinking I'm a god, which I'm convinced would be doom.

But in spite of all that, it does cheer me up a bit as well, as does the fact that you felt like trying to cheer me up in the first place. So thank you :-)
Link Reply to this | Parent | Thread
[identity profile] hsenag.livejournal.comThu 2005-06-09 12:02
The puzzle games are useful...
Link Reply to this | Parent
[identity profile] deliberateblank.livejournal.comThu 2005-06-09 18:49
I've never had *huge* problems with Debian, though I've mostly used dselect rather than the CLI utils, mainly because it's more obvious how they work. The one complaint I'd make about the CLI stuff is that the only usable documentation is asking people who've done it before, because the man/info pages tell you *NOTHING* useful. Have these guys never heard of use-cases?

The main problem I've had is the fact that the netinst or CD installers seem to be perfectly capable of autodetecting whatever hardware you've got, then using any old random NIC to download the rest of the system, but at some point you're asked to manually configure the hardware drivers you want installed. FFS! I DON'T KNOW WHAT MY NETWORK CARD IS! YOU DO! Stop asking me, just use whatever it is you're already using, I don't care, but if you force me to enter it manually (and it just doesn't work after rebooting if you don't) then I'm going to have to unscrew the case to figure it out.
Link Reply to this
[identity profile] mtbc100.livejournal.comFri 2005-06-10 02:23
Pretty much every major Debian upgrade I've done has gone somewhat wrong. Normally I have to grobble about among Perl dependencies or something. Recent examples have had dselect repeatedly trying to get dpkg to again install something that only just failed, and circles of dependencies (this time with tetex things among others) where several things needed to be upgraded at once rather than separately. I generally have to bring out the --force options at some point or another.

I avoid apt like the plague, instead using the dpkg-ftp access method. apt tries to be far too clever for my liking. I prefer to have more control over the process. So, it 'only' took a few hours today to bring one machine from woody to sarge, where at one point it decided to get rid of sysvinit. And, what I really want is etch, for the AMD64 stuff.
Link Reply to this
[personal profile] joshdavisSat 2005-06-11 11:20
Deborah & Ian'
This is the REAL reason I started taking regular backups of my server. Several times, apt-get dist-upgrade has totally borked my system. I'll usually upgrade a few packages at a time.

I STILL don't have devfs, but I'm on a 2.6 kernel.
Link Reply to this
[personal profile] pm215Sun 2005-06-12 03:26
ugly fonts

I've just upgraded and I get the ugly-fonts problem too. I think the problem here is that they now use fontconfig for font selection, and none of the free fonts fontconfig wants to use are much cop. (Check fontconfig's Depends: ttf-bitstream-vera | ttf-freefont | gsfonts-x11 | msttcorefonts. The first looks horribly blurry to me, especially in mozilla menu bars. The third looks like gv's fonts (no surprise there), which seems slightly more palatable to me, but still not much good). The fourth is a wrapper package so you can use the (non-free) font files from a Windows installation. You might try faffing about installing or uninstalling some of these to see which is least worst.

This all worked perfectly well before, but I don't know how to get back to that now (it might not even be possible since probably everything wants to use antialiasing and fontconfig and xft and stuff. And if you turn antialiasing off mozilla misrenders!)

Link Reply to this | Thread
[personal profile] simontSun 2005-06-12 09:52
Re: ugly fonts
Hmm. I don't see any difference between having only ttf-freefont installed and having only gsfonts-x11. However, installing ttf-bitstream-vera gives a significant improvement; the fonts aren't aesthetically ideal, but at least the three vertical strokes of 'm' are consistently the same distance apart rather than the gaps being in a 2:1 ratio! Thanks for your help.
Link Reply to this | Parent | Thread
[personal profile] pm215Sun 2005-06-12 12:19
Re: ugly fonts
msttcorefonts turns out to actually go ahead and download the MS fonts for you with wget, so it's a pretty pain free way to get slightly better fonts if your ideology allows free-beer-but-not-modifiable fonts on your system...
Link Reply to this | Parent
[identity profile] mstevens.livejournal.comTue 2005-06-28 21:20
I always find debian = crap fonts. I've never worked out the cause of this pain, but I've had it happen with a number of installs on several releases.

I've fiddled around endlessly installing MS core fonts and suchlike, but I never quite seem to end up with fonts as nice as something like Redhat or even FreeBSD will give me by default.

At least the insanely-sized-GTK-fonts issue seems to be fixed now.
Link Reply to this
navigation
[ go | Previous Entry | Next Entry ]
[ add | to Memories ]