/etc/kernel/postinst.d/apt-auto-removal: uname: not found

Bug #1198586 reported by Toby Lambert
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Continuous problems installing variety of apps and updates.

ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: linux-image-3.5.0-36-generic 3.5.0-36.57~precise1
ProcVersionSignature: Ubuntu 3.5.0-32.53~precise1-generic 3.5.7.11
Uname: Linux 3.5.0-32-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 2.0.1-0ubuntu17.3
Architecture: amd64
Date: Sun Jul 7 09:11:34 2013
DuplicateSignature: package:linux-image-3.5.0-36-generic:3.5.0-36.57~precise1:run-parts: /etc/kernel/postinst.d/apt-auto-removal exited with return code 127
ErrorMessage: run-parts: /etc/kernel/postinst.d/apt-auto-removal exited with return code 127
InstallationMedia: Ubuntu 12.04.2 LTS "Precise Pangolin" - Release amd64 (20130213)
MarkForUpload: True
SourcePackage: apt
Title: package linux-image-3.5.0-36-generic 3.5.0-36.57~precise1 failed to install/upgrade: run-parts: /etc/kernel/postinst.d/apt-auto-removal exited with return code 127
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Toby Lambert (tlambert165) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Daniel Hartwig (wigs) wrote :

What is output of

$ ls -l /bin/uname
$ apt-cache policy coreutils

summary: - package linux-image-3.5.0-36-generic 3.5.0-36.57~precise1 failed to
- install/upgrade: run-parts: /etc/kernel/postinst.d/apt-auto-removal
- exited with return code 127
+ /etc/kernel/postinst.d/apt-auto-removal: uname: not found
Changed in apt (Ubuntu):
status: New → Incomplete
Revision history for this message
Toby Lambert (tlambert165) wrote :

toby@toby-VPCCB15FG:~$ ls -l /bin/uname
ls: cannot access /bin/uname: No such file or directory
toby@toby-VPCCB15FG:~$ apt-cache policy coreutils
coreutils:
  Installed: 8.13-3ubuntu3.2
  Candidate: 8.13-3ubuntu3.2
  Version table:
 *** 8.13-3ubuntu3.2 0
        500 http://au.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     8.13-3ubuntu3 0
        500 http://au.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

Is that what you wanted?
Sorry not to bright..
Cheers mate

Revision history for this message
Daniel Hartwig (wigs) wrote : Re: [Bug 1198586] Re: /etc/kernel/postinst.d/apt-auto-removal: uname: not found

On 19 July 2013 14:27, Toby Lambert <email address hidden> wrote:
> toby@toby-VPCCB15FG:~$ ls -l /bin/uname
> ls: cannot access /bin/uname: No such file or directory

Uh oh.

> Is that what you wanted?

It is. Please try:

$ sudo apt-get install --reinstall uname

or otherwise use dpkg to reinstall that package. A subsequent run of
apt-get may then work without the apt-auto-removal error.

Revision history for this message
Daniel Hartwig (wigs) wrote :

On 19 July 2013 15:39, Daniel Hartwig <email address hidden> wrote:
> $ sudo apt-get install --reinstall uname
>

That should be:

$ sudo apt-get install --reinstall coreutils

Revision history for this message
Toby Lambert (tlambert165) wrote :

Seems better

toby@toby-VPCCB15FG:~$ ls -l /bin/uname
-rwxr-xr-x 1 root root 27072 Nov 20 2012 /bin/uname
toby@toby-VPCCB15FG:~$ apt-cache policy coreutils
coreutils:
  Installed: 8.13-3ubuntu3.2
  Candidate: 8.13-3ubuntu3.2
  Version table:
 *** 8.13-3ubuntu3.2 0
        500 http://au.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     8.13-3ubuntu3 0
        500 http://au.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
??

Revision history for this message
Daniel Hartwig (wigs) wrote :

On 20 July 2013 08:39, Toby Lambert <email address hidden> wrote:
> Seems better
>
> toby@toby-VPCCB15FG:~$ ls -l /bin/uname
> -rwxr-xr-x 1 root root 27072 Nov 20 2012 /bin/uname

Great. Now you should be able to finish installing kernel updates
without issue.

$ sudo apt-get install -f

Revision history for this message
Toby Lambert (tlambert165) wrote :

Sweet all seemed to update without any problems

toby@toby-VPCCB15FG:~$ sudo apt-get install -f
[sudo] password for toby:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.

thanks for your help, hopefully, i'll learn a bit more and not be so dependent when things turn sour.
cheers again take care

Revision history for this message
Daniel Hartwig (wigs) wrote :

On 21/07/2013 7:00 AM, "Toby Lambert" <email address hidden> wrote:
>
> Sweet all seemed to update without any problems
>

status invalid

Andreas Moog (ampelbein)
Changed in apt (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.