[Bug 280533] Re: procps failed to install/upgrade :unable to make backup link of `./bin/ps' before installing new version: Operation not permitted

2020-04-22 Thread Jorge Delgado
The command that allowed it for me was: chattr -sia /bin/ps

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/280533

Title:
  procps failed to install/upgrade :unable to make backup link of
  `./bin/ps' before installing new version: Operation not permitted

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/procps/+bug/280533/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 280533] Re: procps failed to install/upgrade :unable to make backup link of `./bin/ps' before installing new version: Operation not permitted

2008-11-15 Thread Jean-Baptiste Lallement
We are closing this bug report because it lacks the information we need
to investigate the problem, as described in the previous comments.
Please reopen it if you can give us the missing information, and don't
hesitate to submit bug reports in the future. To reopen the bug report
you can click on the current status, under the Status column, and change
the Status back to "New". Thanks again!

** Changed in: procps (Ubuntu)
   Status: Incomplete => Invalid

-- 
procps failed to install/upgrade :unable to make backup link of `./bin/ps' 
before installing new version: Operation not permitted 
https://bugs.launchpad.net/bugs/280533
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 280533] Re: procps failed to install/upgrade :unable to make backup link of `./bin/ps' before installing new version: Operation not permitted

2008-10-21 Thread Jean-Baptiste Lallement
kautilya, it has worked. If you take a look at the output, the problem
is now with /usr/bin/top . You can repeat the same operation with that
file.

Do you remember of a particular operation / installation you've done ?
Any selinux or hardening tool installed ?

-- 
procps failed to install/upgrade :unable to make backup link of `./bin/ps' 
before installing new version: Operation not permitted 
https://bugs.launchpad.net/bugs/280533
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 280533] Re: procps failed to install/upgrade :unable to make backup link of `./bin/ps' before installing new version: Operation not permitted

2008-10-21 Thread kautilya
Thanks, Jean-Baptiste.

I tried; but it doesn't seem to work...

Here's the output:
[EMAIL PROTECTED]:/home/james# lsattr /bin/ps
s- /bin/ps
[EMAIL PROTECTED]:/home/james# sudo chattr -s /bin/ps
[EMAIL PROTECTED]:/home/james# sudo apt-get install --reinstall procps
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 0B/238kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 158506 files and directories currently installed.)
Preparing to replace procps 1:3.2.7-5ubuntu3 (using
.../procps_1%3a3.2.7-5ubuntu3_amd64.deb) ...
Unpacking replacement procps ...
dpkg: error processing
/var/cache/apt/archives/procps_1%3a3.2.7-5ubuntu3_amd64.deb
(--unpack):
 unable to make backup link of `./usr/bin/top' before installing new
version: Operation not permitted
dpkg-deb: subprocess paste killed by signal (Broken pipe)
dpkg: error while cleaning up:
 subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/procps_1%3a3.2.7-5ubuntu3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

 It looks like this is really screwed. I guess I should reinstall. Any
suggestion on reverting back to a clean install?

Thanks again,

James

On Tue, Oct 21, 2008 at 6:53 PM, Jean-Baptiste Lallement
<[EMAIL PROTECTED]> wrote:
> The problem is with the 'i' attribute. From the man page "A file with
> the 'i' attribute cannot be modified: it cannot be deleted or renamed,
> no link can be created to this file and no data can be written to  the
> file.   Only the superuser or a process possessing the
> CAP_LINUX_IMMUTABLE capability can set or clear this attribute."
>
> Runnig the following commands shoud do the trick:
> sudo chattr -i /bin/ps
> sudo apt-get install --reinstall procps
>
> If it doesn't fix your problem then remove the 'a' and 's' attributes
> and please attach the output of the command "mount"
>
> How did you achieved in this state. Did you changed the attributes, are you 
> using a remote fs (nfs, smb, ...) ?
> Your 'ls' command seems barely broken too. Any alias ?
>
> Thanks
>
> --
> procps failed to install/upgrade :unable to make backup link of `./bin/ps' 
> before installing new version: Operation not permitted
> https://bugs.launchpad.net/bugs/280533
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in "procps" source package in Ubuntu: Incomplete
>
> Bug description:
> Binary package hint: procps
>
> When I install new packages, I get the following error message:
> E: /var/cache/apt/archives/procps_1%3a3.2.7-5ubuntu3_amd64.deb: unable to 
> make backup link of `./bin/ps' before
> installing new version
>
> ProblemType: Package
> Architecture: amd64
> Date: Wed Oct  8 22:35:55 2008
> DistroRelease: Ubuntu 8.04
> ErrorMessage: unable to make backup link of `./bin/ps' before installing new 
> version
> Package: procps 1:3.2.7-5ubuntu3 [modified: bin/ps usr/bin/top]
> PackageArchitecture: amd64
> SourcePackage: procps
> Title: package procps 1:3.2.7-5ubuntu3 [modified: bin/ps usr/bin/top] failed 
> to install/upgrade: unable to make backup link of `./bin/ps' before 
> installing new version
> Uname: Linux 2.6.24-20-generic x86_64
>

-- 
procps failed to install/upgrade :unable to make backup link of `./bin/ps' 
before installing new version: Operation not permitted 
https://bugs.launchpad.net/bugs/280533
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 280533] Re: procps failed to install/upgrade :unable to make backup link of `./bin/ps' before installing new version: Operation not permitted

2008-10-21 Thread Jean-Baptiste Lallement
The problem is with the 'i' attribute. From the man page "A file with
the ā€˜iā€™ attribute cannot be modified: it cannot be deleted or renamed,
no link can be created to this file and no data can be written to  the
file.   Only the superuser or a process possessing the
CAP_LINUX_IMMUTABLE capability can set or clear this attribute."

Runnig the following commands shoud do the trick:
sudo chattr -i /bin/ps
sudo apt-get install --reinstall procps

If it doesn't fix your problem then remove the 'a' and 's' attributes
and please attach the output of the command "mount"

How did you achieved in this state. Did you changed the attributes, are you 
using a remote fs (nfs, smb, ...) ?
Your 'ls' command seems barely broken too. Any alias ?

Thanks

-- 
procps failed to install/upgrade :unable to make backup link of `./bin/ps' 
before installing new version: Operation not permitted 
https://bugs.launchpad.net/bugs/280533
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Re: [Bug 280533] Re: procps failed to install/upgrade :unable to make backup link of `./bin/ps' before installing new version: Operation not permitted

2008-10-21 Thread kautilya
Thanks, Jean-Baptiste.

I got an error message for ls command. Otherwise please see the output
below.

[EMAIL PROTECTED]:~$ lsattr /bin/ps
s---ia /bin/ps
[EMAIL PROTECTED]:~$ ls -l -h /bin/ps
ls: invalid option -- h
Try `ls --help' for more information.
[EMAIL PROTECTED]:~$ ls -l /bin/ps
ls: unrecognized prefix: do
ls: unparsable value for LS_COLORS environment variable
-rwxr-xr-x   1 122  gdm 62920 Jul 10 05:29 /bin/ps

I also ran it as root and got the same output.

Thanks again,

James

On Tue, Oct 21, 2008 at 5:42 PM, Jean-Baptiste Lallement
<[EMAIL PROTECTED]> wrote:
> "Operation not permitted" means that the file's or directory's attribute
> bits are set incorrectly. The solution is to use lsattr to display file
> and directory attributes, and chattr to set and unset them.
>
> Can you please provide the output of the following commands:
> lsattr /bin/ps
> ls -l -h /bin/ps
>
> Thanks
>
> --
> procps failed to install/upgrade :unable to make backup link of `./bin/ps' 
> before installing new version: Operation not permitted
> https://bugs.launchpad.net/bugs/280533
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in "procps" source package in Ubuntu: Incomplete
>
> Bug description:
> Binary package hint: procps
>
> When I install new packages, I get the following error message:
> E: /var/cache/apt/archives/procps_1%3a3.2.7-5ubuntu3_amd64.deb: unable to 
> make backup link of `./bin/ps' before
> installing new version
>
> ProblemType: Package
> Architecture: amd64
> Date: Wed Oct  8 22:35:55 2008
> DistroRelease: Ubuntu 8.04
> ErrorMessage: unable to make backup link of `./bin/ps' before installing new 
> version
> Package: procps 1:3.2.7-5ubuntu3 [modified: bin/ps usr/bin/top]
> PackageArchitecture: amd64
> SourcePackage: procps
> Title: package procps 1:3.2.7-5ubuntu3 [modified: bin/ps usr/bin/top] failed 
> to install/upgrade: unable to make backup link of `./bin/ps' before 
> installing new version
> Uname: Linux 2.6.24-20-generic x86_64
>

-- 
procps failed to install/upgrade :unable to make backup link of `./bin/ps' 
before installing new version: Operation not permitted 
https://bugs.launchpad.net/bugs/280533
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 280533] Re: procps failed to install/upgrade :unable to make backup link of `./bin/ps' before installing new version: Operation not permitted

2008-10-21 Thread Jean-Baptiste Lallement
"Operation not permitted" means that the file's or directory's attribute
bits are set incorrectly. The solution is to use lsattr to display file
and directory attributes, and chattr to set and unset them.

Can you please provide the output of the following commands:
lsattr /bin/ps
ls -l -h /bin/ps

Thanks

-- 
procps failed to install/upgrade :unable to make backup link of `./bin/ps' 
before installing new version: Operation not permitted 
https://bugs.launchpad.net/bugs/280533
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs