Jaunty and Unsupported distribution error (moblin image-creator)

Bug #354465 reported by kiennd
22
Affects Status Importance Assigned to Milestone
moblin-image-creator (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: moblin-image-creator

After install moblin-image-creator from in Ubuntu 9.04 by aptitude, I run it and get error

root@kiennd-laptop:/root# image-creator
Unsupported distribution: distribution.Ubuntu

Do you have any idea, thanks!

Revision history for this message
xbartx (xbartx) wrote :

I have the same problem.

bart@K1226:~$ uname -a
Linux K1226 2.6.29-020629rc8-generic #020629rc8 SMP Fri Mar 13 17:10:31 UTC 2009 i686 GNU/Linux

bart@K1226:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 9.04
Release: 9.04
Codename: jaunty

bart@K1226:~$ sudo image-creator
Unsupported distribution: distribution.Ubuntu

summary: - Jaunty and Unsupported distribution error
+ Jaunty and Unsupported distribution error (moblin image-creator)
Revision history for this message
xbartx (xbartx) wrote :

This is a strace from run image-creator.

Revision history for this message
Pablo Capeluto (pablocapeluto) wrote :

I have the same problem, but it worked in Ubuntu 8.10 with 9.04 gives me this error

pablo@pablo-desktop:~$ sudo image-creator
Unsupported distribution: distribution.Ubuntu

-----------------------------
Linux pablo-desktop 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009 i686 GNU/Linux
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 9.04
Release: 9.04
Codename: jaunty

Changed in moblin-image-creator (Ubuntu):
assignee: nobody → Pablo Capeluto (pcapeluto-gmail)
status: New → Confirmed
assignee: Pablo Capeluto (pcapeluto-gmail) → nobody
Revision history for this message
"freedom" Koan-Sin Tan (koansin-tan) wrote :

I dug a little bit and found the the cause of the problem and a quick and dirty solution.

The reason:

Image Creator uses platform.dist() to determine the platform it's running on. If you run 'python -c "import platform; print platform.dist()"' on Ubuntu before 8.10, the result is something like '('debian', 'lenny/sid', '')'. If you run it on 9.04, the result is something like '('Ubuntu', '9.04', 'jaunty')'

A quick fix:
change mic_cfg.py as attached

Revision history for this message
xbartx (xbartx) wrote :

I patch /usr/share/pdk/lib/mic_cfg.py and image-creator work fine. Good job Koan-Sin Tan.

Revision history for this message
modi (diddischmeier) wrote :

i want to use moblin-image-creator-2 to create an moblin-image for my eee 701.
i cant find this mic_cfg.py on my 9.10.
What can i do?
is there a prebuild image i can DL somewhere?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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