无法在 Ubuntu 16.04 上升级 pulseaudio

无法在 Ubuntu 16.04 上升级 pulseaudio

我无法在 Ubuntu 16.04 上升级 pulseaudio。

The following packages will be upgraded:
  pulseaudio
1 upgraded, 0 newly installed, 0 to remove and 37 not upgraded.    
2 not fully installed or removed.  
Need to get 0 B/766 kB of archives.  
After this operation, 4,096 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 341675 files and directories currently installed.)
Preparing to unpack .../pulseaudio_1%3a8.0-0ubuntu3.8_amd64.deb ...
Unpacking pulseaudio (1:8.0-0ubuntu3.8) over (1:8.0-0ubuntu3.7)...  
dpkg: error processing archive /var/cache/apt/archives/pulseaudio_1%3a8.0-0ubuntu3.8_amd64.deb (unpack):  
unable to create '/usr/share/pulseaudio/alsa-mixer/paths/hdmi-output-1.conf.dpkg-new'  
(while processing '/usr/share/pulseaudio/alsa-mixer/paths/hdmi-output-1.conf'):  
Permission denied  
Processing triggers for dbus (1.10.6-1ubuntu3.3) ...  
Errors were encountered while processing:    
 /var/cache/apt/archives/pulseaudio_1%3a8.0-0ubuntu3.8_amd64.deb  
E: Sub-process /usr/bin/dpkg returned an error code (1)

以下是sudo apt-cache policy pulseaudio

pulseaudio:
  Installed: 1:8.0-0ubuntu3.7
  Candidate: 1:8.0-0ubuntu3.8
  Version table:
     1:8.0-0ubuntu3.8 500
        500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
 *** 1:8.0-0ubuntu3.7 100
        100 /var/lib/dpkg/status
     1:8.0-0ubuntu3 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages

以下是ls -ld /usr/share/pulseaudio/alsa-mixer/paths

drwxr-xr-x 2 root root 4096 Jan  6 10:58 /usr/share/pulseaudio/alsa-mixer/paths

答案1

该目录/usr/share/pulseaudio/alsa-mixer/paths被设置为不可变。我通过运行 来更改它sudo chattr -Ri /usr/share/pulseaudio/alsa-mixer/paths。一切都已修复。

相关内容