Can't update PulseAudio in Ubuntu 10.10
When I try to update PulseAudio I get a message that the package is damaged.
( https:/
If I try to uninstall it, I am told that it is damaged so I must reinstall first. But when I try to reins.tall, I get error and cannot. I am stuck
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Ubuntu apt Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Revision history for this message
|
#1 |
More information:
sudo apt-get clean & sudo apt-get update worked fine.
When I executed sudo apt-get -y upgrade I got this In Spanish. (REmind me how to change the language to English. In 10:04 I would exit the session and I would have the options of changing the language, but that option does not appear. It would be good to change it to English so I could better communicate with you about this.) Anyway this is what it says:
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Tal vez quiera ejecutar 'apt-get -f install' para corregirlo.
Los siguientes paquetes tienen dependencias incumplidas:
pulseaudio : Depende: libpulse0 (= 1:0.9.22~
E: Dependencias incumplidas. Pruebe de nuevo usando -f.
Basically, it suggests running 'apt-get -f install'. So I did that and this is what I got:
ceas@ceas-laptop:~$ sudo apt-get -f install
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Corrigiendo dependencias... Listo
Se instalarán los siguientes paquetes extras:
pulseaudio
Paquetes sugeridos:
paprefs
Paquetes recomendados
pulseaudio-
Se actualizarán los siguientes paquetes:
pulseaudio
1 actualizados, 0 se instalarán, 0 para eliminar y 0 no actualizados.
1 no instalados del todo o eliminados.
Necesito descargar 1171kB de archivos.
Se utilizarán 2175kB de espacio de disco adicional después de esta operación.
¿Desea continuar [S/n]? s
Des:1 http://
Descargados 1171kB en 10s (116kB/s)
Seleccionando el paquete pulseaudio previamente no seleccionado.
(Leyendo la base de datos ... 00%
219210 ficheros y directorios instalados actualmente.)
Preparando para reemplazar pulseaudio 1:0.9.22~
/usr/bin/
invoke-rc.d: initscript pulseaudio, action "stop" failed.
dpkg: aviso: el subproceso script de `pre-removal' antiguo devolvió el código de salida de error 127
dpkg - probando el script del nuevo paquete en su lugar...
/usr/bin/
invoke-rc.d: initscript pulseaudio, action "stop" failed.
dpkg: error al procesar /var/cache/
el subproceso script pre-removal nuevo devolvió el código de salida de error 127
/usr/bin/
invoke-rc.d: initscript pulseaudio, action "start" failed.
dpkg: error al reorganizar:
el subproceso script post-installation instalado devolvió el código de salida de error 127
Se encontraron errores al procesar:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
Revision history for this message
|
#2 |
In response to LANG=C;sudo apt-get install -f, it gave me this:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
pulseaudio
Suggested packages:
paprefs
Recommended packages:
pulseaudio-
The following packages will be upgraded:
pulseaudio
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 1171kB of archives.
After this operation, 2175kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://
Fetched 1171kB in 10s (115kB/s)
Selecting previously deselected package pulseaudio.
(Reading database ... 219210 files and directories currently installed.)
Preparing to replace pulseaudio 1:0.9.22~
/usr/bin/
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 ...
/usr/bin/
invoke-rc.d: initscript pulseaudio, action "stop" failed.
dpkg: error processing /var/cache/
subprocess new pre-removal script returned error exit status 127
/usr/bin/
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/
E: Sub-process /usr/bin/dpkg returned an error code (1)
Then in response to ~$ LANG=C;sudo apt-get dist-upgrade, I got this:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
pulseaudio : Depends: libpulse0 (= 1:0.9.22~
E: Unmet dependencies. Try using -f.
Revision history for this message
|
#3 |
I tried to remove and then reinstall pulseaudio from terminal:
sudo apt-get remove pulseaudio
sudo apt-get install pulseaudio
It won't let me uninstall it, it tells me the package is in a bad or inconsistent state so I should first reinstall it before uninstalling. But then it won't let me reinstall either. I also tried to uninstall it through Synaptics with no luck. What to do?
(Again a language question: if I put LANG=C; before the command will it be in English? I suppose that would be helpful.)
When I tried to uninstall:
sudo apt-get remove pulseaudio
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Los siguientes paquetes se ELIMINARÁN:
pulseaudio
0 actualizados, 0 se instalarán, 1 para eliminar y 0 no actualizados.
1 no instalados del todo o eliminados.
Se liberarán 2494kB después de esta operación.
¿Desea continuar [S/n]? s
dpkg: error al procesar pulseaudio (--remove):
El paquete está en un estado muy malo e inconsistente - debe reinstalarlo
antes de intentar desinstalarlo.
Se encontraron errores al procesar:
pulseaudio
E: Sub-process /usr/bin/dpkg returned an error code (1)
When I tried to reinstall:
sudo apt-get install pulseaudio
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Paquetes sugeridos:
paprefs
Paquetes recomendados
pulseaudio-
Se actualizarán los siguientes paquetes:
pulseaudio
1 actualizados, 0 se instalarán, 0 para eliminar y 0 no actualizados.
1 no instalados del todo o eliminados.
Se necesita descargar 0B/1171kB de archivos.
Se utilizarán 2175kB de espacio de disco adicional después de esta operación.
Seleccionando el paquete pulseaudio previamente no seleccionado.
(Leyendo la base de datos ... 00%
219210 ficheros y directorios instalados actualmente.)
Preparando para reemplazar pulseaudio 1:0.9.22~
/usr/bin/
invoke-rc.d: initscript pulseaudio, action "stop" failed.
dpkg: aviso: el subproceso script de `pre-removal' antiguo devolvió el código de salida de error 127
dpkg - probando el script del nuevo paquete en su lugar...
/usr/bin/
invoke-rc.d: initscript pulseaudio, action "stop" failed.
dpkg: error al procesar /var/cache/
el subproceso script pre-removal nuevo devolvió el código de salida de error 127
/usr/bin/
invoke-rc.d: initscript pulseaudio, action "start" failed.
dpkg: error al reorganizar:
el subproceso script post-installation instalado devolvió el código de salida de error 127
Se encontraron errores al procesar:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
When I tried to uninstall pulseaudio vía Synaptics, this is the error message:
E: /var/cache/
basically this says that the new script preremoval subprocess gave the exit (?) code error 127
Revision history for this message
|
#4 |
Please try to remove pulseaudio, from terminal:
sudo apt-get remove pulseaudio
sudo apt-get autoremove
Please try to disable the from terminal:
gksudo gedit /etc/apt/
put a "#" in front of this row
http://
if you cant find the row might be you must open some file under
/etc/apt/
Then type:
sudo apt-get clean
sudo apt-get update
sudo apt-get dist-upgrade
Revision history for this message
|
#5 |
Now I tried this: I went into Synatic and uncheck all repositories from other sources. Then I tried what follows:
LANG=C;sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of pulseaudio:
pulseaudio depends on libpulse0 (= 1:0.9.22~
Version of libpulse0 on system is 1:0.9.22-
dpkg: error processing pulseaudio (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
pulseaudio
ceas@ceas-laptop:~$ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
pulseaudio
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 2494kB disk space will be freed.
Do you want to continue [Y/n]? Y
dpkg: error processing pulseaudio (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
pulseaudio
E: Sub-process /usr/bin/dpkg returned an error code (1)
Then I did this:
LANG=C;sudo apt-get install pulseaudio
Reading package lists... Done
Building dependency tree
Reading state information... Done
pulseaudio is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
pulseaudio : Depends: libpulse0 (= 1:0.9.22~
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
I am lost.... What to do?
Revision history for this message
|
#6 |
Package is in a very bad inconsistent state - you should reinstall it before attempting a removal.
Please try:
sudo apt-get install pulseaudio
sudo apt-get -f install
Revision history for this message
|
#7 |
or better
sudo apt-get --reinstall install pulseaudio
Revision history for this message
|
#8 |
If you have tried everything else, a last resort is this.
1. Backup your /var/lib/
2. In a terminal, type in the following command: sudo gedit /var/lib/
3. The errant package seems pulseaudio so, do a search for it in the opened file.
4. When you have located it, CAREFULLY delete all references to it.
5. Save the file and re-boot.
As apt system is no longer aware of this package and although it hasn't actually been deleted, over time, it will be over-written.
Revision history for this message
|
#9 |
I tried sudo apt-get --reinstall install pulseaudio and again I got error messages:
(Reading database ... 219210 files and directories currently installed.)
Preparing to replace pulseaudio 1:0.9.22~
/usr/bin/
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 ...
/usr/bin/
invoke-rc.d: initscript pulseaudio, action "stop" failed.
dpkg: error processing /var/cache/
subprocess new pre-removal script returned error exit status 127
/usr/bin/
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/
E: Sub-process /usr/bin/dpkg returned an error code (1)
Revision history for this message
|
#10 |
Thanks Marcobra for the "last resort" suggestion. It looks like this will need to be the way to go. A couple of questions before I proceed.
1. How do I backup /var/lib/
2. ONce I reboot, what do I do with this backed up file?
3. Do I then try to reinstall pulseAudio?
Revision history for this message
|
#11 |
I did the "last resort" recommendation on 2010-11-29. I copied the status file. I entered the terminal and deleted the pulseaudio package. I did not delete other pulseaudio references. I rebooted.
I entered Synaptic with the idea of reinstalling pulse audio. This is the message I got:
pulseaudio:
Depends: libpulse0 (=1:0.9.
Recommends: pulseaudio-
Recommends: pulseaudio-
So, I did not proceed.
I thought of uninstalling libpulse0 to see if then I could install pulseaudio, but when I attempted it, the message was that it would uninstall many of the gnome applications. So I did not proceed.
Ubuntu-desktop depends on pulseaudio and pulseaudio-
So, is this where I should be for now? Suggestions?
Revision history for this message
|
#12 |
Marcobra
I am attaching here, as well as on the web, what I did, for your
recommendations:
I did the "last resort" recommendation on 2010-11-29. I copied the
status file. I entered the terminal and deleted the pulseaudio package.
I did not delete other pulseaudio references. I rebooted.
I entered Synaptic with the idea of reinstalling pulse audio. This is
the message I got:
pulseaudio:
Depends: libpulse0 (=1:0.9.22~0.9.21
+stable-
to be installed
Recommends: pulseaudio-
Recommends: pulseaudio-
installed
So, I did not proceed.
I thought of uninstalling libpulse0 to see if then I could install
pulseaudio, but when I attempted it, the message was that it would
uninstall many of the gnome applications. So I did not proceed.
Ubuntu-desktop depends on pulseaudio and pulseaudio-
is not installed and functioning either.
So, is this where I should be for now? Suggestions?
El lun, 29-11-2010 a las 05:00 +0000, marcobra (Marco Braida) escribió:
> Your question #135873 on apt in ubuntu changed:
> https:/
>
> marcobra (Marco Braida) proposed the following answer:
> If you have tried everything else, a last resort is this.
>
> 1. Backup your /var/lib/
> becuase if you lose this file, your system is hosed.
>
> 2. In a terminal, type in the following command: sudo gedit
> /var/lib/
>
> 3. The errant package seems pulseaudio so, do a search for it in the
> opened file.
>
> 4. When you have located it, CAREFULLY delete all references to it.
>
> 5. Save the file and re-boot.
>
> As apt system is no longer aware of this package and although it hasn't
> actually been deleted, over time, it will be over-written.
>
Revision history for this message
|
#13 |
This question was expired because it remained in the 'Open' state without activity for the last 15 days.
Revision history for this message
|
#14 |
Pablo I had the same problem after trying to upgrade ALSA to the latest version. To do this, I had enabled this PPA:
ppa:ubuntu-
When I disabled it, I could not re-install pulse audio with the same error as you. In a terminal, simply run the following commands:
sudo add-apt-repository ppa:ubuntu-
sudo apt-get update