[Osgeo4w-trac] [osgeo4w] #278: apt remove or upgrade fails on read-only files

OSGeo4W trac_osgeo4w at osgeo.org
Fri Mar 23 14:20:00 EDT 2012


#278: apt remove or upgrade fails on read-only files
-------------------+--------------------------------------------------------
Reporter:  maphew  |       Owner:  osgeo4w-dev@…              
    Type:  defect  |      Status:  new                        
Priority:  major   |   Component:  Package                    
 Version:          |    Keywords:  pkg-apt                    
-------------------+--------------------------------------------------------
 {{{
 C:\> apt remove msys
 ...snip
 Traceback (most recent call last):
   File "<string>", line 1043, in <module>
   File "<string>", line 326, in upgrade
   File "<string>", line 150, in install
   File "<string>", line 175, in install_next
   File "<string>", line 453, in do_uninstall
 WindowsError: [Error 5] Access is denied:
 'B:\\o4w\\apps\\msys\\man\\cat3\\regcomp.3.txt.lnk'
 }}}

 Inspecting the file attributes shows it is set as Read-only. A simple
 `attrib -r *.lnk` fixes it.

 That said, the link files are broken anyway as they are hard coded to
 `G:\Program Files\Regex\man\...`.

-- 
Ticket URL: <http://trac.osgeo.org/osgeo4w/ticket/278>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.


More information about the Osgeo4w-trac mailing list