package util-linux 2.20.1-5.1ubuntu20.4 failed to install/upgrade: подпроцесс новый сценарий pre-installation возвратил код ошибки 255

Bug #1502623 reported by Gray
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
util-linux (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

it's a result of "apt-get upgrade" command.
tail of console output:

Распаковывается mount (2.20.1-5.1ubuntu20.7) на замену (2.20.1-5.1ubuntu20.4) …
Обрабатываются триггеры для man-db (2.6.7.1-1ubuntu1) …
Настраивается пакет mount (2.20.1-5.1ubuntu20.7) …
(Чтение базы данных … на данный момент установлено 901128 файлов и каталогов.)
Подготовка к распаковке …/util-linux_2.20.1-5.1ubuntu20.7_amd64.deb …
Can't exec "insserv": Нет такого файла или каталога at /usr/sbin/update-rc.d line 391.
update-rc.d: error: insserv rejected the script header
dpkg: ошибка при обработке архива /var/cache/apt/archives/util-linux_2.20.1-5.1ubuntu20.7_amd64.deb (--unpack):
 подпроцесс новый сценарий pre-installation возвратил код ошибки 255
Can't exec "insserv": Нет такого файла или каталога at /usr/sbin/update-rc.d line 391.
update-rc.d: error: insserv rejected the script header
dpkg: ошибка при очистке:
 подпроцесс установлен сценарий post-installation возвратил код ошибки 255
При обработке следующих пакетов произошли ошибки:
 /var/cache/apt/archives/util-linux_2.20.1-5.1ubuntu20.7_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 14.04
Package: util-linux 2.20.1-5.1ubuntu20.4
ProcVersionSignature: Ubuntu 3.13.0-65.105-generic 3.13.11-ckt26
Uname: Linux 3.13.0-65-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.15
Architecture: amd64
Date: Sun Oct 4 22:43:46 2015
ErrorMessage: подпроцесс новый сценарий pre-installation возвратил код ошибки 255
InstallationDate: Installed on 2013-11-26 (677 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
RelatedPackageVersions:
 dpkg 1.17.5ubuntu5.4
 apt 1.0.1ubuntu2.7
SourcePackage: util-linux
Title: package util-linux 2.20.1-5.1ubuntu20.4 failed to install/upgrade: подпроцесс новый сценарий pre-installation возвратил код ошибки 255
UpgradeStatus: Upgraded to trusty on 2014-05-18 (504 days ago)

Revision history for this message
Gray (gray-green) wrote :
Revision history for this message
Phillip Susi (psusi) wrote :

Please post the output of the following commands:

apt-cache policy insserv
ls -l /usr/lib/insserv/insserv

Changed in util-linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Gray (gray-green) wrote :

~$ apt-cache policy insserv
insserv:
  Installed: 1.14.0-5ubuntu2
  Candidate: 1.14.0-5ubuntu2
  Version table:
 *** 1.14.0-5ubuntu2 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status

~$ ls -l /usr/lib/insserv/insserv
-rwxr-xr-x 1 root root 56448 May 19 2013 /usr/lib/insserv/insserv

but:
~$ insserv
insserv: command not found

Revision history for this message
Phillip Susi (psusi) wrote :

Strange... mine looks like this:

-rwxr-xr-x 1 root root 55340 May 18 2013 /usr/lib/insserv/insserv

It's one day older and a few bytes smaller. Try reinstalling the package. sudo apt-get install --reinstall insserv

Revision history for this message
Gray (gray-green) wrote :

nothing good:

$ env LANG=C sudo apt-get install --reinstall insserv
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-3.13.0-54 linux-headers-3.13.0-54-generic
  linux-headers-3.13.0-62 linux-headers-3.13.0-62-generic
  linux-image-3.13.0-54-generic linux-image-3.13.0-62-generic
  linux-image-extra-3.13.0-54-generic linux-image-extra-3.13.0-62-generic
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 261 not upgraded.
17 not fully installed or removed.
Need to get 0 B/43.3 kB of archives.
After this operation, 0 B of additional disk space will be used.
Setting up util-linux (2.20.1-5.1ubuntu20.4) ...
Can't exec "insserv": No such file or directory at /usr/sbin/update-rc.d line 391.
update-rc.d: error: insserv rejected the script header
dpkg: error processing package util-linux (--configure):
 subprocess installed post-installation script returned error exit status 255
Errors were encountered while processing:
 util-linux
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Gray (gray-green) wrote :

strange. i wanted to paste output of "apt-get upgrade" command (from first post) on english, but now it is slightly changed...
here it is:
After this operation, 838 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Extracting templates from packages: 100%
Preconfiguring packages ...
Can't exec "/tmp/util-linux.config.GoWob6": Permission denied at /usr/share/perl/5.18/IPC/Open3.pm line 173.
open2: exec of /tmp/util-linux.config.GoWob6 configure 2.20.1-5.1ubuntu20.4 failed at /usr/share/perl5/Debconf/ConfModule.pm line 59.
(Reading database ... 901128 files and directories currently installed.)
Preparing to unpack .../util-linux_2.20.1-5.1ubuntu20.7_amd64.deb ...
Can't exec "insserv": No such file or directory at /usr/sbin/update-rc.d line 391.
update-rc.d: error: insserv rejected the script header
dpkg: error processing archive /var/cache/apt/archives/util-linux_2.20.1-5.1ubuntu20.7_amd64.deb (--unpack):
 subprocess new pre-installation script returned error exit status 255
Errors were encountered while processing:
 /var/cache/apt/archives/util-linux_2.20.1-5.1ubuntu20.7_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

these lines were not there:
Can't exec "/tmp/util-linux.config.GoWob6": Permission denied at /usr/share/perl/5.18/IPC/Open3.pm line 173.
open2: exec of /tmp/util-linux.config.GoWob6 configure 2.20.1-5.1ubuntu20.4 failed at /usr/share/perl5/Debconf/ConfModule.pm line 59.

Revision history for this message
Gray (gray-green) wrote :

I do not know how this relates, but I used ramdisk (tmpfs) for /tmp directory. strange. I thought it was normal practice. now i commented out corresponding line in fstab and those additional lines from previous message are gone away.
although this does not solve the whole problem, I think initially it appeared because of this

Revision history for this message
Phillip Susi (psusi) wrote :

Try apt-get download inserv then dpkg -i insserv_1.14.0-5ubuntu3_amd64.deb, and finally apt-get upgrade.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for util-linux (Ubuntu) because there has been no activity for 60 days.]

Changed in util-linux (Ubuntu):
status: Incomplete → Expired
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.