WUBI 10.04 and 12.04 stops after the pre-copy

Bug #956729 reported by Daggi Duck
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Wubi
Incomplete
Undecided
Unassigned

Bug Description

WUBI for Ubuntu-Desktop 10.04 and 12.04 Beta1 stops after the pre-copy phase. WUBI for Ubuntu-Desktop 8.04 works without the problem on the same PC.

Revision history for this message
Daggi Duck (daggi-duck) wrote :
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

03-15 20:09 DEBUG TaskList: ## Running get_iso...
03-15 20:09 DEBUG TaskList: New task copy_file
03-15 20:09 DEBUG TaskList: ### Running copy_file...
03-15 20:12 DEBUG TaskList: ### Finished copy_file
03-15 20:12 ERROR TaskList: [Errno 22] Invalid argument
Traceback (most recent call last):
  File "\lib\wubi\backends\common\tasklist.py", line 197, in __call__
  File "\lib\wubi\backends\common\utils.py", line 202, in copy_file
IOError: [Errno 22] Invalid argument
03-15 20:12 DEBUG TaskList: # Cancelling tasklist
03-15 20:12 ERROR root: [Errno 22] Invalid argument
Traceback (most recent call last):
  File "\lib\wubi\application.py", line 58, in run
  File "\lib\wubi\application.py", line 130, in select_task
  File "\lib\wubi\application.py", line 205, in run_cd_menu
  File "\lib\wubi\application.py", line 120, in select_task
  File "\lib\wubi\application.py", line 158, in run_installer
  File "\lib\wubi\backends\common\tasklist.py", line 197, in __call__
  File "\lib\wubi\backends\common\utils.py", line 202, in copy_file
IOError: [Errno 22] Invalid argument
03-15 20:12 DEBUG TaskList: New task check_iso
03-15 20:12 ERROR CommonBackend: CD check failed, but ignoring because CD is Alpha
03-15 20:12 DEBUG TaskList: ## Finished get_iso

Revision history for this message
Stéphane Graber (stgraber) wrote :
Changed in wubi:
status: New → Incomplete
Revision history for this message
bcbc (bcbc) wrote : Re: [Bug 956729] Re: WUBI 10.04 and 12.04 stops after the pre-copy

It's likely a bad burn on the CD - based on historical reporting of errno
22. Try booting your computer from that CD and run the CD check from the
extended menu (hit space when you see the keyboard/man icon). That should
confirm it.

You can either run wubi.exe standalone (as suggested) or with the
downloaded ISO in the same directory - but whichever way make sure the bad
cd is not in the drive or wubi will find it and fail again.

Revision history for this message
Daggi Duck (daggi-duck) wrote :

Many thank's for your prompt support.

I have tried the installation with the new downloaded version of WUBI. With the burned CD it gives the same error (see the attached log file). But the new version of WUBI do not complains the empty cardreader drive G: as the old version do it some times.

Then I have booted with the CD and the live system ist running without any error. Next I have booted with the CD and choose checking the CD from the extended menu. The CD check gives no error!

Last I installed the Ubuntu-Desktop without the CD, but with the nev version of WUBI and the downloaded ISO file (which was burned at the CD) at the same directory without any error (see the attached log file).

This way, my problem is solved, but not the problem to install with the burned CD. If you need more tests to solve fully the problem with the WUBI installation with a burned CD, I will do that for you.

Revision history for this message
Daggi Duck (daggi-duck) wrote :
Revision history for this message
bcbc (bcbc) wrote :

So not a bad burn... bug 207137 mentions a case where the optical drive can be a factor in the failure - the install was successful when the CD was in the DVDROM drive, but not the CD/RW drive on the same computer.

So it points more to something in the code src/wubi/backends/common/utils.py:
def copy_file(source, target, associated_task=None):
    '''
    Copy file with progress report
    '''
    if os.path.isfile(source):
        file_size = os.path.getsize(source)
    elif os.path.ismount(source):
        if sys.platform.startswith("win"):
            file_size = get_drive_space(source)
            source = "\\\\.\\%s" % source[:2]
    if associated_task:
        associated_task.size = file_size/1024**2
        associated_task.unit = "MB"
    source_file = open(source, "rb")
    target_file = open(target, "wb")
    data_read = 0
    while True:
        data = source_file.read(1024**2) <===== line 202
        data_read += 1
        if data == "":
            break
        if associated_task:
            if associated_task.set_progress(data_read):
                source_file.close()
                target_file.close()
                return
        target_file.write(data)
        if data_read >= file_size:
            break
    source_file.close()
    target_file.close()
    if associated_task:
        associated_task.finish()

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.