hakuna-m / wubiuefi

fork of Wubi (https://launchpad.net/wubi) for UEFI support and for support of recent Ubuntu releases
GNU General Public License v2.0
1.05k stars 149 forks source link

[Errno 13] Permission denied: 'D:\\...\\vmlinuz' #30

Open Javapraca opened 7 years ago

Javapraca commented 7 years ago

I try to install Ubuntu on 32-bit Windows XP by:

Could you please help me with this?

Best regards

wubi-16.10-rev317.log.txt wubi-16.10-rev318.log.txt

hakuna-m commented 7 years ago

wubi-16.10-rev317.log.txt and wubi-16.10-rev318.log.txt contain lines which indicates a previous install:

11-22 16:15 DEBUG WindowsBackend: previous_target_dir=D:\ubuntu

There is nothing wrong with these lines because you tried the install again and again. But I miss the lines for deleting of the previous target directory: e.g.

CommonBackend: Deleting D:\ubuntu

These lines are part of the log of the previous installer/uninstaller version, of course. But there should be at least a line:

INFO root: Running the uninstaller...

If there is a previous uninstaller, there should be a line

INFO CommonBackend: Launching previous uninestaller D:\ubuntu\uninstall-wubi.exe

If the version of the previous uninstaller is as equal as the current version, there should be a line:

INFO CommonBackend: This is the uninstaller running

(*) followed by the missing line which indicates the deletion of the old target directory.

To put in a nutshell, can you check if the old target directory D:\ubuntu is completely removed before you install a new version.

Maybe, it is necessary to uninstall it manually

edit: (*)

Javapraca commented 7 years ago

Yes, I forgot to mention that after each failed installation I removed the installation directory (D:\ubuntu) manually. I guess one time I allowed WUBI to delete previous installation (I assume that has also sorted out C:\boot.ini). Anyway, I am sure that the installation directory did not exist when I run the installations (I think WUBI would not even let me leave its initial window, if the installation folder was not deleted).

I am also sure that WUBI created file D:\ubuntu\install\boot\vmlinuz .

Do you have any clues why WUBI has a problem accessing the file? Do these Python's errors give any clues?

PS. I did not install WUBI on my computer, so I will let You know if this is C:\boot.ini problem when I will have a chance to access it.

hakuna-m commented 7 years ago

Do you have any clues why WUBI has a problem accessing the file?

Wubi needs only read permissions for D:\ubuntu\install\boot\vmlinuz. IMHO if the file doesn't exist, there would be another error message. So you confirmed my assumption:

I am also sure that WUBI created file D:\ubuntu\install\boot\vmlinuz

I think WUBI would not even let me leave its initial window, if the installation folder was not deleted

In general, you are right. But maybe a hidden folder would be not deleted.

IMHO there are the following possible reasons:

Javapraca commented 7 years ago

I have tried to install Ubuntu with WUBI on another Windows XP computer (also on D partition) and got the same errors. Both computers have installed Avast antivirus, but there were no warnings from it. The file attributes are set correctly.

Would you please try to replicate the error and fix it. I think that WUBI on Windows XP is most needed/demanded since XP users are practically forced to change their OS nowadays.

hakuna-m commented 7 years ago

Would you please try to replicate the error

Some hours ago, I tried to replicate the error on an old computer with Windows XP SP3. The computer has no internet connection for security reasons. So I copied wubi1610r319.exe and a matching 32 bit ISO to my old computer and tried to install ....

But no error occured, the installation was successful.

hakuna-m commented 7 years ago

I compared my log and your logs and I found only minor differences.

Here is the part of the log where I expected errors:

02-10 14:46 DEBUG  CommonBackend: Extracting files from ISO F:\ubuntu\install\installation.iso
02-10 14:46 DEBUG  WindowsBackend:   extracting md5sum.txt from F:\ubuntu\install\installation.iso
02-10 14:46 DEBUG  WindowsBackend:   extracting casper\vmlinuz from F:\ubuntu\install\installation.iso
02-10 14:46 DEBUG  WindowsBackend:   extracting casper\initrd.lz from F:\ubuntu\install\installation.iso
02-10 14:46 DEBUG  CommonBackend: Checking kernel, initrd and md5sums
02-10 14:46 DEBUG  CommonBackend:   checking F:\ubuntu\install\boot\vmlinuz
02-10 14:46 DEBUG  CommonBackend:   F:\ubuntu\install\boot\vmlinuz md5 = 51e5984c776b1c420ced96f9f88b0116 == 51e5984c776b1c420ced96f9f88b0116
02-10 14:46 DEBUG  CommonBackend:   checking F:\ubuntu\install\boot\initrd.lz
02-10 14:46 DEBUG  CommonBackend:   F:\ubuntu\install\boot\initrd.lz md5 = 11bf9a6fae56bf7a9b426008033d5397 == 11bf9a6fae56bf7a9b426008033d5397
02-10 14:46 DEBUG  TaskList: ## Finished extract_kernel 

So maybe it works, if you disconnect internet during installation or if you use an iso which is not downloadable for the current version. (e.g. wubi1610r.... with a 16.04 iso). This should skip some steps.