upgrading ubuntu breezy to dapper

Introduction

If you upgrade your ubuntu breezy distribution to dapper before its official release (June 1st), you may encounter some problems, as I did. In this post you can find a guide to upgrade from breezy to dapper and some fixes for the issues that affected my distribution (and possibly yours) after the upgrade process.

Warning: if you are using ubuntu linux in production environments (at work) and you don’t want to risk to lose an entire day to fix a possibly broken upgrade, I suggest to wait a couple of months (until dapper is mature enough and all the upgrade issues are fixed) before upgrading. If you can risk go on and have fun ;-)
I was using kubuntu breezy with Firefox 1.5 and Thunderbird 1.5 installed following these guides:

I forgot to remove them before upgrading. I suggest you to get rid of them (but keep the profiles, so when you upgrade to dapper all your extensions and settings will be already there) by following the uninstall instructions (see links above), else you can do that later…

Upgrading to dapper

My old sources.list file was looking as follows:

deb http://ch.archive.ubuntu.com/ubuntu breezy main restricted universe multiverse
deb-src http://ch.archive.ubuntu.com/ubuntu breezy main restricted universe multiverse

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ch.archive.ubuntu.com/ubuntu breezy-updates main restricted universe multiverse
deb-src http://ch.archive.ubuntu.com/ubuntu breezy-updates main restricted universe multiverse

## Uncomment the following two lines to add software from the ‘universe’
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
# deb http://ch.archive.ubuntu.com/ubuntu breezy universe
# deb-src http://ch.archive.ubuntu.com/ubuntu breezy universe

## Uncomment the following two lines to add software from the ‘backports’
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://ch.archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse
# deb-src http://ch.archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu breezy-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu breezy-security main restricted universe multiverse

# deb http://security.ubuntu.com/ubuntu breezy-security universe
# deb-src http://security.ubuntu.com/ubuntu breezy-security universe

## Backports
#deb http://archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse

deb http://kubuntu.org/packages/kde352 breezy main
deb http://kubuntu.org/packages/koffice-15 breezy main
#deb http://kubuntu.org/packages/amarok-latest dapper main

As you can notice I was using the latest KDE version (3.5.2) from the kubuntu.org repositories. The amarok repository was commented because I tried it and it didn’t work for dependencies with dapper packages that couldn’t be installed as I was using breezy.

If you are using kubuntu, make sure that you have installed this meta package before upgrading to dapper (else kde could be removed):

In order to upgrade to dapper I had to replace all the “breezy” occurrences in my sources.list file with “dapper”. With the “vi” editor you can do this as follows:

My new sources.list file is looking as follows:

deb http://ch.archive.ubuntu.com/ubuntu dapper main restricted universe multiverse
deb-src http://ch.archive.ubuntu.com/ubuntu dapper main restricted universe multiverse

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ch.archive.ubuntu.com/ubuntu dapper-updates main restricted universe multiverse
deb-src http://ch.archive.ubuntu.com/ubuntu dapper-updates main restricted universe multiverse

## Uncomment the following two lines to add software from the ‘universe’
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
# deb http://ch.archive.ubuntu.com/ubuntu dapper universe
# deb-src http://ch.archive.ubuntu.com/ubuntu dapper universe

## Uncomment the following two lines to add software from the ‘backports’
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://ch.archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse
# deb-src http://ch.archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu dapper-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted universe multiverse

# deb http://security.ubuntu.com/ubuntu dapper-security universe
# deb-src http://security.ubuntu.com/ubuntu dapper-security universe

## Backports
#deb http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse

deb http://kubuntu.org/packages/kde352 dapper main
deb http://kubuntu.org/packages/koffice-15 dapper main
deb http://kubuntu.org/packages/amarok-latest dapper main

When your sources.list is ready, you can proceed as follows:

After the upgrade I logged out, restarted the X Server and logged in. Kde was still 3.5.2 but it looked different, I guess because it took some default configuration values.

Firefox and Thunderbird

As dapper already contains the latest Firefox (1.5.0.3) and Thunderbird (1.5.0.2) versions I removed Firefox (1.5) and Thunderbird (1.5) that I manually installed before (see above).

Openoffice

I noticed that openoffice2 was no more there… I try to manually install it as follows:
sudo apt-get install openoffice.org2

But I got the following error: “openoffice2.org: openoffice.org2: Depends: openoffice.org (> 2.0.2) but it is not going to be installed”. Thus I asked for some support in the freenode #ubuntu+1 IRC channel and someone told me to just install the “openoffice.org” package. I did that and surprise: it worked. Do as follows:

KDE issues

Panel Menu icons not updated

The problem is that the menu icons weren’t updated. Openoffice was there but not the icons, the same problem occurred for other programs. To resolve this I had to move (I never delete, just in case) the ~/.config and the ~/.local/share/applications folders:

Then I logged out and logged in in order for the kde menu to be (autopmatically) recreated correctly. It worked as expected.

Konqueror opening bookmarks in new windows instead of new tabs

I don’t know why but in dapper konqueror changed its behaviour. I had to reconfigure it as follows:

Konqueror > Menu “Settings” > Configure Konqueror > Web Behaviour > Tabbed Browsing > Advanced Options > thick “Open as tab in existing Konqueror when URL is called externally”.

Quanta Plus

I have the same problem as for Konqueror. Each time I edit a file it opens a new Quanta instance instead of using a new tab in the same one. I’m actually looking for a way to solve this.

Edit 09.06.06: to solve the issue go in the KDE menu, to the Quanta Icon > click on it with the right mouse button > Edit Item > replace “quanta %U” with “quanta –unique > /dev/null 2>&1″ and uncheck the option “Enable launch feedback”.

Sound not working anymore

I had another problem. The sound. With breezy I was using the kernel image 2.6.12-10-686 and my USB headset (I have no soundcard at work) was properly working. A friend of mine told me that it’s because the udev support was introduced only from the kernel version 2.6.13. Probably breezy was designed to create the devices at the boot time and dapper is “lazy” and it expects that the kernel does that. As I had an older kernel than 2.6.13 the device wasn’t created. To see if the problem affects also your upgraded distribution, issue this command:

If you get “No such file or directory” you may need to install a newer kernel image, as follows:

When I wrote this post the newer linux image was the 2.6.15-23, thus, as my computer had a 686 compatible processor, I installed the following:

Conclusions

To summarize I was using kubuntu breezy with the latest kde (3.5.2) repositories from kubuntu.org, I had Firefox 1.5 and Thunderbird 1.5 manually installed (because breezy had older versions). After upgrading to dapper Openoffice was gone, the kde menu icons where not updated and the sound was not working anymore. I fixed these issues as I described in this post. I hope it may help other people that can’t wait till the official dapper release on June 1st ;-) Good luck.

For more (official) documentation, take a look at https://wiki.kubuntu.org/Testing/UpgradePaths

Take a look also at the Ubuntu Dapper Drake 6.06 Guide (it’s really a very well done guide to help you to satisfy all your needs).
A special thanks to the people that helped me in the IRC channels #ubuntu, #ubuntu+1 and #kubuntu on freenode.

Tags:
  • May 23, 2006, Category: IT stuff

    Print version Print version


    Stai male? Piccola guida per stare meglio.

    Come combattere la depressione e la disperazione?

    Una persona (della quale ti fidi, che ami) ti ha fatto o ha preso una decisione che ti fa star male e ti ha deluso?

    Stai male, malissimo, sei disperato/a a tal punto che non sai che fare?

    Se qualcuno dovesse star così male da cercare in google la soluzione, spero che trovi questa pagina e spero che possa trovare qualcosa di utile in queste righe.

    Soluzioni possibili

    Piangere. Piangere non è mai stato un delitto. Se ci tieni alla tua autostima piangi per i fatti tuoi. Non c’é bisogno che qualcuno ti veda. Ma se ti trovi più confortato con la presenza di un amico/amica, piangi con lui/lei. Una pacca sulla spalla, qualche abbraccio e qualche parola consolatoria non hanno mai fatto male.

    Parlare. Personalmente mi è venuta in mente la chat. IRC? Naaaa. In IRC è pieno d’avvoltoi che sanno solo dirti “hai ragione” “se fossi in te…” “sei stato trattato ingiustamente”. Personalmente credo che queste cose siano scontate. Parlane con un amico reale. E’ meglio. Se non c’é nessuno disponibile dal vivo spero che ci sia almeno su Messenger. Alla peggio scrivi un SMS al tuo migliore amico, scrivi una mail, telefona… se non ci sono amici disponibili spero almeno che ci sia qualche famigliare. C’é sicuramente qualcuno col quale puoi sfogarti. Magari non hai mai parlato di problemi con un tuo genitore o parente, ma sappi che un rapporto non è mai scontato, ma si crea. Potrebbe essere il momento giusto per scoprire che un parente può anche essere un grande amico (se non addirittura meglio) nel momento del bisogno.

    Isolarsi è sbagliato. Se ti isoli non fai altro che cadere nella spirale della disperazione. Cerca il contatto, semmai esci a bere qualcosa, esci a ballare, esci a fare un po’ di sport.

    Cercare un’attività di sfogo. Se non vuoi uscire prendi a pugni il tuo materasso (almeno non ti distruggi la mano). Distruggi qualcosa ma possibilmente niente che abbia troppo valore (o piatti e bicchieri, perché distruggerli, valgono poco ma poi devi andarli a ricomprare ;-) . Sfogati, fa qualche flessione, fatti una corsa, fatti un giro in bici, fa quello che vuoi ma fa uscire la frustrazione o la rabbia che c’é in te.

    Ripulirsi. Probabilmente non erro se dico che stai sudando freddo. Fa un po’ d’attività fisica e poi vatti a fare un bel bagno o una doccia. Consiglio: dopo una doccia calda, fatti anche una doccia fredda per riattivare la circolazione e per farti sentire più sveglio. Qui si tratta di ripulirsi interiormente, ma dato che il corpo è il guscio dell’anima e senza di esso l’anima muore o vaga Dio solo sa dove, è buona cosa curare questo guscio. Rasati, curati, non lasciarti diventare uno schifo o starai solo peggio.
    Scrivere. Se sei più “intellettuale” e sei in vena di scrivere, scrivi! Giusto un consiglio: il mondo è pieno d’avvoltoi, non alimentarli fornendo loro la tua carne, cioè il tuo dolore. tieni per te la tua privacy, non esporti. Se vuoi e ti fa sentir meglio, fa leggere quello che hai scritto alle persone di cui ti fidi. Ma evita di far riferimento a persone e a fatti reali sul tuo blog personale (se è lì che volevi scrivere), come già detto gli avvoltoi si nutrono di queste cose. Inventati una storia con tante metafore, persone e fatti inventati (magari ispirandoti a quel che ti è successo), potresti (ri)scoprire la tua creatività e il tuo talento narrativo ;-)

    Musica. Non ascoltare smancerie, musiche lente o sentimentali (non possono far altro che deprimerti). Ascolta qualcosa di “(c)attivo” e di potente. Ascolta che so, un po’ di musica punk, techno o qualcosa che distragga la tua mente e che non ti faccia pensare al torto che hai subito o al male che provi. Ascolta qualcosa che ti dia la carica, non qualcosa che scarichi le tue batterie.

    Cantare. Canta qualcosa di (c)attivo per far uscire la rabbia e la frustrazione che c’é in te. Ogni canzone ha la sua morale. Se qualcuno canta qualcosa di simile a quel che hai visttuo significa che non sei solo. La musica ci unisce e c’é qualcuno che ti capisce.

    Il lavoro è importante. Cercare di pensare efficientemente. So che quando si sta male è veramente difficile controllare i propri sentimenti, ma se hai un lavoro da svolgere quella è la tua priorità, è qualcosa di “stabile”. Non lasciare che una delusione d’amore o il comportamento di una persona della quale ti fidi mandi all’aria una delle poche cose stabili che hai. Il lavoro dovrebbe essere ratificante. Cerca di trovare soddisfazione in quello che fai. Anche se hai un lavoro noioso questo è il momento per pensare positivo e cercare di renderlo divertente o interessante. In confronto alla delusione e al male che provi, il lavoro (anche se noioso) è il paradiso, no?

    C’è sempre qualcuno che sta peggio di te. Viviamo in una giungla, nel mondo succedono barbarie di ogni tipo che neanche riusciresti ad immaginare. Fattene una ragione, la vita va avanti. Anche se dovesse morirti la persona che più ti sta cara, devi guardare in avanti. Forse non ti aiuta pensare che c’è gente che sta peggio di te. Ma sicuramente se tu (che stai male in questo momento) dovessi parlare con qualcuno che sta peggio di te e dovessi aiutarlo a tirarsi su riusciresti in qualche modo a darti un po’ di pace.

    Deprimersi non serve a niente. La depressione non aiuta. La depressione è una spirale e ti farà stare ancora peggio. Non caderci.

    Sfuggire dal problema non serve a niente. Affronta il problema, non aspettare all’infinito. Ogni problema ha la sua soluzione (anche se spesso non è la soluzione che t’aspettavi).

    Non ricadere in un vizio. L’alcool, la droga, abbuffarsi di dolchi o di altre schifezze, passare ore e ore in un videogame non serve a niente. Non parlo per esperienza, ma sono sicuro che diventare alcolizzati o drogati non sia una bella cosa. Tu cosa ne pensi? Però posso dirti che cadere nel vizio di un gioco o in quello della chat ti allontana dalla realtà. Stà coi piedi per terra. Vivere in un mondo immaginario non serve a niente. Il mondo è quello che è, ma puoi sicuramente viverci con armonia. Basta cercarla.
    Dormirci su. Spesso una buona dormita (oltre a tutti i punti elencati sopra) ti aiuta a chiarire le idee. Se dopo averci dormito su (anche diverse notti) ti senti ancora male, prendi i provvedimenti necessari. Comunica con l’altra parte (con chi ti ha fatto star male) oppure mettici una croce sopra. Spesso la gente è troppo immatura per affrontare le sue colpe. La cosa peggiore che uno può vivere è non rendersi conto di aver sbagliato. Se proprio uno ti ha deluso profondamente non è necessario “aiutarlo” dicendogli cosa e dove ha sbagliato. Se ami una persona però diglielo. Magari questa persona capirà l’errore e cercherà di migliorare. Altrimenti che ognuno raccolga quel che ha seminato. E’ giusto che si paghi per i propri errori.

    Non fare agli altri quel che non vuoi che sia fatto a te. Qualsiasi torto tu abbia subito la vendetta è sbagliata. Hai mai sentito di gente che presa dalla disperazione ha ucciso la propria famiglia e poi si è suicidata? Ti sembra la soluzione? Hai la vita davanti. Se facessi una cosa del genere cos’avresti davanti? Il nulla. Meglio vivere con un po’ di sofferenza alle spalle che non vivere del tutto. Ricordati. Si vive una volta sola, non buttare via questa chance. Ringrazia chi vuoi (Dio?) ma la vita è un privilegio che ti è concesso una volta sola. Anche se sei credente chi ti garantisce che quello in cui credi sia vero? Nel dubbio meglio non rischiare, no? E comunque se sei credente, credo che Dio voglia che tu viva una vita piena di felicità, non che tu ti lasciassi andare e buttassi all’aria tutto quello che hai costruito (e che Lui ti ha concesso).

    Tutti pagano per i propri errori. Un giorno o l’altro amo credere che tutti raccoglieranno, direttamente o indirettamente, quello che han seminato. Forse anche tu non ti sei comportato bene nel passato, pensaci. A quante persone hai fatto del male? Forse ora stai pagando per il male che hai provocato agli altri. Sfrutta questa opportunità per cercare di migliorare e di non commettere mai più del male verso il prossimo.

    Pensare positivo. Se stai malissimo puoi solo cercare di star meglio: basta provare a fare un’attività elencata sopra.

    Pensare alle proprie responsabilità. Forse il mio slogan non piacerà a tutti, ma credo che la vita sia come una lotta continua per sopravvivere, difendere i propri valori e le persone che si ama. Come un militare, ogni persona ha una missione più importante di tutto, pure della propria vita. La missione è prioritaria e la vita è piena d’imprevisti che cercheranno di farti fallire nel compierla. Ma tu non puoi lasciarti andare. Se cadi devi rialzarti e combattere fino all’ulrima goccia di sangue in corpo e fino all’ultimo respiro. Se proprio devi cadere, fallo con onore dando il massimo fino alla fine. In modo meno estremo tutti, persino tu hai indirettamente o meno delle responsabilità, delle persone che credono o che dipendono da te (ad es. famiglia, amici, conoscenti, colleghi, comunità…): se tu cadi recerai loro del dispiacere, loro ti amano, ti fa sentir meglio che loro stanno male per causa tua? Rialzati, fallo prima di tutto per te stesso ma anche per loro. Probabilmente se ti senti veramente male non te ne fregherà niente di loro, ma è sbagliato. Devi ricordarti della tua missione.
    Anche se tu non ci credi, Dio crede in te. Bene o male ne uscirai, basta volerlo. Basta accettare la Sua mano e ti aiuterà fuori dai guai. Ma sei tu che devi cercare questa mano invisibile.

    E ora in piedi, basta disperarti, che ci fai ancora qui? ;-) sorridi alla vita, ne hai una sola.

    Tags:
  • May 6, 2006, Category: Personale

    Print version Print version