Opened 13 years ago

Closed 13 years ago

#110 closed defect (invalid)

apt: sometimes can't remove .dll files

Reported by: maphew Owned by: maphew
Priority: major Component: Installer
Version: Keywords:
Cc:

Description

D:\o4w> apt remove msvcrt
removing msvcrt 1.0.1-2
Traceback (most recent call last):
  File "b:\o4w\apt\apt.py", line 787, in <module>
    __main__.__dict__[command] ()
  File "b:\o4w\apt\apt.py", line 633, in remove
    do_uninstall ()
  File "b:\o4w\apt\apt.py", line 613, in do_uninstall
    if os.remove (file):
WindowsError: [Error 5] Access is denied: 'D:/o4w\\bin/msvcp71.dll'

deleting the file manually and running apt remove again is a successful workaround

Change History (2)

comment:1 by maphew, 13 years ago

Owner: changed from osgeo4w-dev@… to maphew
Status: newassigned

comment:2 by maphew, 13 years ago

Resolution: invalid
Status: assignedclosed

In this particular instance I was editing apt.py with the Leo Editor the same time as testing apt remove. Leo was using msvcp71.dll so of course it couldn't be deleted. Moral of the story: close other apps using anything in the o4w tree before attempting to uninstall.

On the bright side, it appears apt install and apt remove can be run successively until it finally gets everything done.

Note: See TracTickets for help on using tickets.