* Cannot delete a file - could it be ext3 related?
@ 2007-04-25 8:54 Donatas G.
2007-04-25 11:26 ` Andreas Dilger
0 siblings, 1 reply; 2+ messages in thread
From: Donatas G. @ 2007-04-25 8:54 UTC (permalink / raw)
To: linux-ext4
[-- Attachment #1: Type: text/plain, Size: 2541 bytes --]
I have a problem with system upgrade (Kubuntu Edgy to Feisty) which is caused
by the systems inability to remove a corrupted file. I suspect this could be
filesystem related, so I am writing to this list.
Since I am not subscribed, COULD YOU SEND ME RESPONCES DIRECTLY?
I ran fsck /dev/hda5 (my partition) to no avail - the filesystem used to
contain errors, but they are all corrected before this upgrade.
Here is the story:
## trying to remove the showstopper package:
dg@bala:/var/lib/dpkg/info$ sudo apt-get remove libidn11-dev
...
dpkg: error processing libidn11-dev (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_S_construct NULL not valid
Aborted
dg@bala:/var/lib/dpkg/info$ Errors were encountered while processing:
libidn11-dev
## trying to update the showstopper package:
dg@bala:/var/lib/dpkg/info$ sudo apt-get install libidn11-dev
........
Preparing to replace libidn11-dev 0.6.3-1
(using .../libidn11-dev_0.6.5-1build1_i386.deb) ...
Unpacking replacement libidn11-dev ...
dpkg: error
processing /cdrom//pool/main/libi/libidn/libidn11-dev_0.6.5-1build1_i386.deb
(--unpack):
unable to install (supposed) new info file `/var/lib/dpkg/tmp.ci/postinst':
Operation not permitted
Errors were encountered while processing:
/cdrom//pool/main/libi/libidn/libidn11-dev_0.6.5-1build1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
## trying to remove the showstopper package:
dg@bala:/var/lib/dpkg/info$ ls -lo libidn11-dev.postinst
-rwxr-xr-x 1 root 36864 2007-04-25 09:09 libidn11-dev.postinst
## the date is new because
## dg@bala:/var/lib/dpkg/info$ sudo touch libidn11-dev.postinst
command was the only one that did work on this file :)
## trying to chmod the file
dg@bala:/var/lib/dpkg/info$ sudo chmod 777 ./libidn11-dev.postinst
chmod: keičiamos `./libidn11-dev.postinst' teisės: Operation not permitted
## Trying to force remove the file...
dg@bala:/var/lib/dpkg/info$ sudo rm -f libidn11-dev.postinst
rm: cannot remove `libidn11-dev.postinst': Operation not permitted
I am forwarding the contents of the file: kate editor describes it as a
binary, it contains a short bash script with all kinds of junk (including my
mail addresses and headers) at the end...
Google did not help me. Could someone explain what is happening?
--
Donatas Glodenis
http://dg.lapas.info
[-- Attachment #2: libidn11-dev.postinst.gz --]
[-- Type: application/x-gzip, Size: 4632 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Cannot delete a file - could it be ext3 related?
2007-04-25 8:54 Cannot delete a file - could it be ext3 related? Donatas G.
@ 2007-04-25 11:26 ` Andreas Dilger
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Dilger @ 2007-04-25 11:26 UTC (permalink / raw)
To: Donatas G.; +Cc: linux-ext4
On Apr 25, 2007 11:54 +0300, Donatas G. wrote:
> I have a problem with system upgrade (Kubuntu Edgy to Feisty) which is caused
> by the systems inability to remove a corrupted file. I suspect this could be
> filesystem related, so I am writing to this list.
>
> Since I am not subscribed, COULD YOU SEND ME RESPONCES DIRECTLY?
>
> I ran fsck /dev/hda5 (my partition) to no avail - the filesystem used to
> contain errors, but they are all corrected before this upgrade.
>
Try "chattr -i" on the file.
Cheers, Andreas
--
Andreas Dilger
Principal Software Engineer
Cluster File Systems, Inc.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-04-25 11:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-25 8:54 Cannot delete a file - could it be ext3 related? Donatas G.
2007-04-25 11:26 ` Andreas Dilger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).