Adept Manager crashes when you add bad URL of a mirror

Bug #211674 reported by usr
78
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Adept Manager
Unknown
Medium
adept (Ubuntu)
Fix Released
Medium
Unassigned
Nominated for Intrepid by usr

Bug Description

Adept Manager crashes when you add bad URL of a mirror.

For example: If you add "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu gutsy" instead "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu gutsy main", adept crashes.

It should show a message like as "The URL of the mirror is incorrect. Please, verify that it you are writing is right".

Related branches

Revision history for this message
In , Ben Aceler (aceler) wrote :

Version: (using KDE KDE 3.5.6)
Installed from: Ubuntu Packages

When I added a new source, I forget to say "deb", so I say:

http://mirror.yandex.ru/ubuntu feisty main

instead of

deb http://mirror.yandex.ru/ubuntu feisty main

and Adept adds this line to sources.list! This cause adept crashing when fetching new source and it was not able to start later.

Adept have to check what he trying to write in sources.list!

description: updated
Revision history for this message
In , mornfall (mornfall) wrote :

*** Bug 159952 has been marked as a duplicate of this bug. ***

Revision history for this message
In , mornfall (mornfall) wrote :

This is indeed something that needs to be fixed, however: there is currently no sources editor integrated into Adept on the version 3 development branch (users are referred to use external software-properties utility) and it won't be there for 3.0 release. I'm marking this as 3.1 for now, therefore.

Revision history for this message
In , mornfall (mornfall) wrote :

*** Bug 156951 has been marked as a duplicate of this bug. ***

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

The repository managing window is actually a separate program.

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

...but the crash in in adept.

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Confirming with Adept 3.0~beta1.

Changed in adept:
status: New → Confirmed
Changed in adept:
importance: Undecided → Low
Changed in adept:
status: Confirmed → Triaged
Changed in adeptmgr:
status: Unknown → In Progress
Revision history for this message
usr (usrlp-deactivatedaccount-deactivatedaccount) wrote :

Confirming with Adept 3.0~beta4.

Revision history for this message
gotaug (gotaug) wrote :

The same thing happened to me using Adept 3.0-beta4, on kubuntu 8.10 final release AMD64. Once I manually corrected the bad entry in the sources.list file, using Kate, then Adept started working again. Until then, it wouldn't even open!

Something as small as a bad repository address shouldn't crash the whole Adept application. This is a real flaw in the program.

Revision history for this message
Pancho (pancho.s) wrote :

Confirming this bug with Adept 3.0-beta4 on Kubuntu 8.10 Final AMD64.
This is really ugly as a "Welcome message" to new users.

Revision history for this message
Chris J Cheney (c.j.cheney) wrote :

I have just come up against this bug with Kubuntu 8.10 (released version).

The effect is that once a bad URL (e.g. "http;" instead of "http:") is in sources.list, Adept will crash when it is started, giving no opportunity for fixing (or circumventing) the problem. The end-user is then stuck (unless he/she has enough knowledge to go the correct file and manually edit it). IMHO the priority should rather greater than "low".

Contrastingly, Synaptic outputs a diagnostic indicating the line where the error is and continues by ignoring that line.

Revision history for this message
Ole Rasmussen (eluminex) wrote :

Happens to me on Kubuntu 9.04 Alpha5 (x64) as well when I forgot the 'e' in "deb" in the URL. This is the output from adept:

Constructing PkgSystem
PkgSystem Score:32
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Type 'db' is not known on line 55 in source list /etc/apt/sources.list
E: Type 'db' is not known on line 55 in source list /etc/apt/sources.list
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

terminate called after throwing an instance of 'wibble::exception::System'
  what(): Success. Context:
    The list of sources could not be read.
Aborted (core dumped)

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Fix committed for Adept 3.0 beta6.

Changed in adept (Ubuntu):
importance: Low → Medium
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package adept - 3.0~beta7.2ubuntu1

---------------
adept (3.0~beta7.2ubuntu1) karmic; urgency=low

  * Sync with Debian unstable
    Bugfixes: LP: #211674, LP: #290620
  * Add kubuntu_01_gcc_44_ftbfs_fix.diff to fix a FTBFS with GCC 4.4

 -- Jonathan Thomas <email address hidden> Wed, 09 Sep 2009 11:46:50 -0400

Changed in adept (Ubuntu):
status: Fix Committed → Fix Released
Changed in adeptmgr:
importance: Unknown → Medium
Revision history for this message
In , adaptee (adaptee) wrote :

Adept has been in the unmaintained state for a few years. Use muon[1] as replacement .

[1] https://launchpad.net/muon

Changed in adeptmgr:
status: In Progress → Unknown
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.