zproc
Posts: 31
Joined: Mon Sep 03, 2012 12:05 pm

apt-get failing to upgrade pulseaudio [solved]

Wed Jun 12, 2013 8:49 pm

i can't install or upgrade anything cause apt-get can't remove pulseaudio because of an init.d script error

i tried apt-get upgrade, remove, autoremove, purge, --reinstall

and i get this error:

Code: Select all

sudo apt-get install pulseaudio --reinstall
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libqt4-dbus qdbus
Use 'apt-get autoremove' to remove them.
Suggested packages:
  pavumeter pavucontrol paman paprefs
Recommended packages:
  pulseaudio-module-x11
The following packages will be upgraded:
  pulseaudio
1 upgraded, 0 newly installed, 0 to remove and 28 not upgraded.
92 not fully installed or removed.
Need to get 0 B/785 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 82702 files and directories currently installed.)
Preparing to replace pulseaudio 2.0-6 (using .../pulseaudio_2.0-6.1_armhf.deb) ...
/etc/init.d/pulseaudio: 1: /etc/default/pulseaudio: Start: not found
invoke-rc.d: initscript pulseaudio, action "stop" failed.
dpkg: warning: subprocess old pre-removal script returned error exit status 127
dpkg: trying script from the new package instead ...
/etc/init.d/pulseaudio: 1: /etc/default/pulseaudio: Start: not found
invoke-rc.d: initscript pulseaudio, action "stop" failed.
dpkg: error processing /var/cache/apt/archives/pulseaudio_2.0-6.1_armhf.deb (--unpack):
 subprocess new pre-removal script returned error exit status 127
/etc/init.d/pulseaudio: 1: /etc/default/pulseaudio: Start: not found
invoke-rc.d: initscript pulseaudio, action "start" failed.
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 /var/cache/apt/archives/pulseaudio_2.0-6.1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
when i try "sudo service pulseaudio stop"
i get also:

/etc/init.d/pulseaudio: 1: /etc/default/pulseaudio: Start: not found


Should i paste the script? what can i do to remove (and reinstall/upgrade) pulseaudio and this initscript if purge doesn't work?
Last edited by zproc on Thu Jun 13, 2013 9:41 pm, edited 1 time in total.

User avatar
DaveDriesen
Posts: 113
Joined: Sun Mar 31, 2013 8:28 pm
Location: Top of the food chain
Contact: Website

Re: apt-get failing to upgrade pulseaudio, init script stop

Wed Jun 12, 2013 9:48 pm

Came across this also.. Lazy mode fix that worked for me:

Code: Select all

cd /var/cache/apt/archives
dpkg --install --force-all pulseaudio_2.0-6.1_armhf.deb
This resolved the issue and made the installation consistent once again.

It's probably not a good idea to force installation this way but I didn't feel like losing more time.

Dave Driesen
Linux dev and oldskool elite

zproc
Posts: 31
Joined: Mon Sep 03, 2012 12:05 pm

Re: apt-get failing to upgrade pulseaudio, init script stop

Thu Jun 13, 2013 7:28 am

Thanks, but i get the same error :/

Code: Select all

/var/cache/apt/archives $ sudo dpkg --install --force-all pulseaudio_2.0-6.1_armhf.deb
(Reading database ... 82702 files and directories currently installed.)
Preparing to replace pulseaudio 2.0-6 (using pulseaudio_2.0-6.1_armhf.deb) ...
/etc/init.d/pulseaudio: 1: /etc/default/pulseaudio: Start: not found
invoke-rc.d: initscript pulseaudio, action "stop" failed.
dpkg: warning: subprocess old pre-removal script returned error exit status 127
dpkg: trying script from the new package instead ...
/etc/init.d/pulseaudio: 1: /etc/default/pulseaudio: Start: not found
invoke-rc.d: initscript pulseaudio, action "stop" failed.
dpkg: error processing pulseaudio_2.0-6.1_armhf.deb (--install):
 subprocess new pre-removal script returned error exit status 127
/etc/init.d/pulseaudio: 1: /etc/default/pulseaudio: Start: not found
invoke-rc.d: initscript pulseaudio, action "start" failed.
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 pulseaudio_2.0-6.1_armhf.deb
Maybe I could try replacing the init script with a working one if that's really the real problem ?

plugwash
Forum Moderator
Forum Moderator
Posts: 3476
Joined: Wed Dec 28, 2011 11:45 pm

Re: apt-get failing to upgrade pulseaudio, init script stop

Thu Jun 13, 2013 3:22 pm

Try the following

rm /var/lib/dpkg/info/pulseaudio.prerm
dpkg -P --force-all pulseaudio
apt-get -f install

zproc
Posts: 31
Joined: Mon Sep 03, 2012 12:05 pm

Re: apt-get failing to upgrade pulseaudio, init script stop

Thu Jun 13, 2013 9:40 pm

Thank you! it worked. :)

yuriy_shevchuck
Posts: 15
Joined: Tue Mar 15, 2016 11:38 am

Re: apt-get failing to upgrade pulseaudio [solved]

Tue Mar 15, 2016 1:05 pm

Hi dears! I have a similar situation.
Please advise on how the issue can be solved.

[email protected]:/home/pi# apt-get update
Get:1 http://mirrordirector.raspbian.org jessie InRelease [15.0 kB]
Get:2 http://archive.raspberrypi.org jessie InRelease [13.2 kB]
Get:3 http://mirrordirector.raspbian.org jessie/main armhf Packages [8,963 kB]
Get:4 http://archive.raspberrypi.org jessie/main armhf Packages [143 kB]
Hit http://archive.raspberrypi.org jessie/ui armhf Packages
Hit http://archive.raspberrypi.org jessie/staging armhf Packages
Ign http://archive.raspberrypi.org jessie/main Translation-en_GB
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/staging Translation-en_GB
Ign http://archive.raspberrypi.org jessie/staging Translation-en
Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Get:5 http://mirrordirector.raspbian.org jessie/contrib armhf Packages [37.5 kB]
Get:6 http://mirrordirector.raspbian.org jessie/non-free armhf Packages [70.3 kB]
Get:7 http://mirrordirector.raspbian.org jessie/rpi armhf Packages [1,356 B]
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Fetched 9,244 kB in 49s (185 kB/s)
Reading package lists... Done

while performing upgrade:
[email protected]:/home/pi# apt-get upgrade
(the full log is in the attachment)
...
Processing triggers for man-db (2.7.0.2-5) ...
/usr/bin/mandb: can't write to /var/cache/man/891: No space left on device
...
/usr/bin/mandb: can't write to /var/cache/man/1357: No space left on device
Processing triggers for gnome-menus (3.13.3-6) ...
Processing triggers for desktop-file-utils (0.22-1) ...
Processing triggers for mime-support (3.58) ...
String found where operator expected at /usr/share/perl/5.20/warnings.pm line 1, near "my $mask = ""
(Missing semicolon on previous line?)
String found where operator expected at /usr/share/perl/5.20/warnings.pm line 1, near """
(Missing semicolon on previous line?)
Number found where operator expected at /usr/share/perl/5.20/warnings.pm line 2, near ""5.11"
(Might be a runaway multi-line "" string starting on line 1)
(Missing operator before 5.11?)
String found where operator expected at /usr/share/perl/5.20/warnings.pm line 2, near """
(Missing semicolon on previous line?)
Number found where operator expected at /usr/share/perl/5.20/warnings.pm line 3, near ""5.15"
(Might be a runaway multi-line "" string starting on line 2)
(Missing operator before 5.15?)
String found where operator expected at /usr/share/perl/5.20/warnings.pm line 3, near """
(Missing semicolon on previous line?)
Bareword found where operator expected at /usr/share/perl/5.20/warnings.pm line 4, near ""all"
(Might be a runaway multi-line "" string starting on line 3)
(Missing operator before all?)
String found where operator expected at /usr/share/perl/5.20/warnings.pm line 4, near """
(Missing semicolon on previous line?)
Bareword found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near ""default"
(Might be a runaway multi-line "" string starting on line 4)
(Missing operator before default?)
String found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "$feature_bundle{""
(Missing semicolon on previous line?)
String found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "5.12"} = $feature_bundle{""
(Missing operator before "} = $feature_bundle{"?)
String found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "$feature_bundle{""
(Missing semicolon on previous line?)
String found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "5.13"} = $feature_bundle{""
(Missing operator before "} = $feature_bundle{"?)
String found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "$feature_bundle{""
(Missing semicolon on previous line?)
String found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "5.14"} = $feature_bundle{""
(Missing operator before "} = $feature_bundle{"?)
String found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "$feature_bundle{""
(Missing semicolon on previous line?)
String found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "5.16"} = $feature_bundle{""
(Missing operator before "} = $feature_bundle{"?)
String found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "$feature_bundle{""
(Missing semicolon on previous line?)
String found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "5.17"} = $feature_bundle{""
(Missing operator before "} = $feature_bundle{"?)
String found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "$feature_bundle{""
(Missing semicolon on previous line?)
String found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "5.18"} = $feature_bundle{""
(Missing operator before "} = $feature_bundle{"?)
String found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "$feature_bundle{""
(Missing semicolon on previous line?)
String found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "5.19"} = $feature_bundle{""
(Missing operator before "} = $feature_bundle{"?)
String found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "$feature_bundle{""
(Missing semicolon on previous line?)
String found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "5.20"} = $feature_bundle{""
(Missing operator before "} = $feature_bundle{"?)
String found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "$feature_bundle{""
(Missing semicolon on previous line?)
String found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "5.9.5"} = $feature_bundle{""
(Missing operator before "} = $feature_bundle{"?)
String found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "croak(""
(Missing semicolon on previous line?)
String found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "if (substr($name, 0, 1) eq ""
(Missing semicolon on previous line?)
String found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "croak(sprintf('Feature bundle ""
(Missing semicolon on previous line?)
String found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "ed' => ""
(Missing semicolon on previous line?)
Backslash found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "x20\"
Backslash found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "x00\"
Backslash found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "x00\"
Backslash found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "x00\"
Backslash found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "x00\"
Backslash found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "x00\"
Backslash found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "x00\"
Backslash found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "x00\"
Backslash found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "x00\"
Backslash found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "x00\"
Backslash found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "x00\"
Backslash found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "x00\"
Backslash found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "x00\"
Backslash found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "x00\"
String found where operator expected at /usr/share/perl/5.20/warnings.pm line 5, near "'digit' => ""
(Missing semicolon on previous line?)
Backslash found where operator expected at /usr/share/perl/5.20/warnings.pm line 6, near "'digit' => "\"
(Might be a runaway multi-line "" string starting on line 5)
(Missing operator before \?)
Backslash found where operator expected at /usr/share/perl/5.20/warnings.pm line 6, near "x00\"
...
Attachments
upgrade_log.7z
(5.38 KiB) Downloaded 27 times

User avatar
DougieLawson
Posts: 36571
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: apt-get failing to upgrade pulseaudio [solved]

Wed Mar 16, 2016 11:05 pm

Have you expanded the root filesystem using sudo raspi-config?
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

yuriy_shevchuck
Posts: 15
Joined: Tue Mar 15, 2016 11:38 am

Re: apt-get failing to upgrade pulseaudio [solved]

Wed Mar 23, 2016 7:45 am

Yes, i did resize the filesystem and issue was solved.

Return to “Raspbian”