software-properties-kde corrupts sources.list file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-properties (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: kpackagekit
I've produced this bug on a y-day's final release image of Kubuntu Karmic Koala LiveCD, downloaded from the official FTP.
I've ran it in Live mode, everything started fine, then I've started the kPackageKit, a frontend to APT package manager I guess. Before gaining the package list from the server, I've opened kPackageKit options and did the following:
I've ticked the "Multiverse" and removed "Restricted", changed the "Default mirror" to "Other" but no dialog or something has appeared, instead every ticks I had set were removed from options dialog, so then I've changed "Default mirror" option from "Other" to "Russian Federation" and set the ticks as I want, and then I have closed the options dialog, saving the settings. After that step I was unable to search for packages or anything, kPackageKit complained about something like "Package cache were not generated previously", updating won't help. Then I've decided to use APT and opened a Terminal and typed:
$ sudo aptitude update
but it didn't work, it complained on (below comes original text in Russian, lower comes the translation)
E: Искажённая строка 2 в списке источников /etc/apt/
E: Invalid consistency at line 2 in the sources list /etc/apt/
I've opened sources.list file in text editor and what I saw was weird lines like the ones here (Exact copy below):
deb karmic main restricted universe multiverse
deb karmic-updates main restricted universe multiverse
deb karmic-security main restricted universe multiverse
So the idea was kPackageKit had an error and removed the whole addresses.
After bringing lines to their normal look (example below) I've updated the package cache fine and kPackageKit works.
deb http://
My ideas are that this may be due to strange behavior of the kPackageKit when having no package cache at all (As had I, because the first run from LiveCD won't have a cache obviously). All versions used are default for Kubuntu Karmic release CD as of 29th of October, '09. Unfortunately I'm not currently able to find out the exact versions and gain original messages in English, but as far as I remember, KDE should be 4.3.2 for the Karmic release.
Related branches
- Ubuntu Core Development Team: Pending requested
-
Diff: 45 lines (+10/-5)3 files modifieddebian/changelog (+6/-0)
softwareproperties/kde/I18nHelper.py (+1/-1)
softwareproperties/kde/SoftwarePropertiesKDE.py (+3/-4)
affects: | kpackagekit (Ubuntu) → software-properties (Ubuntu) |
summary: |
- kPackageKit corrupts sources.list file + software-properties-kde corrupts sources.list file |
Fully reproducible: properties- kde directly)
1. boot into kramic live cd, choosing Russian in the languages bootup menu.
2. run open sources dialog in kpackagekit (or run software-
3. select 'Other...' (russian equivalent) from mirrors combo box
4. the mirror dialogs never open, and the sources.list file is now corrupt
The bug is that 'Other...' is treated as any other mirror on the list, but with an empty url, thus the urls in sources.list are updated to blank.