當前位置: 首頁>>技術教程>>正文


如何在Ubuntu(Karmic)上強製降級軟件包?

, ,

問題描述

對一堆pulseaudio程序包進行更新後,我的麥克風停止工作。沒關係,畢竟Karmic仍然在Alpha中。我已將該錯誤報告給啟動板。

同時,我想恢複pulseaudio軟件包的更新。不幸的是,沒有一個軟件包允許我在Synaptic上選擇”Force Version”選項。我曾考慮先刪除它們,然後再安裝舊軟件包,但是刪除脈衝意味著刪除名為ubuntu-desktop的軟件包,我擔心這可能會使事情更加混亂。我很難找到舊版本的軟件包,但最終我將每個* .deb都下載到了我的機器上。

這些是根據Synaptic的曆史記錄進行的更新。

libpulse-browse0 (1:0.9.15-4ubuntu3) to 1:0.9.16~test4-0ubuntu1
libpulse-mainloop-glib0 (1:0.9.15-4ubuntu3) to 1:0.9.16~test4-0ubuntu1
libpulse0 (1:0.9.15-4ubuntu3) to 1:0.9.16~test4-0ubuntu1
pulseaudio (1:0.9.15-4ubuntu3) to 1:0.9.16~test4-0ubuntu1
pulseaudio-esound-compat (1:0.9.15-4ubuntu3) to 1:0.9.16~test4-0ubuntu1
pulseaudio-module-bluetooth (1:0.9.15-4ubuntu3) to 1:0.9.16~test4-0ubuntu1
pulseaudio-module-gconf (1:0.9.15-4ubuntu3) to 1:0.9.16~test4-0ubuntu1
pulseaudio-module-x11 (1:0.9.15-4ubuntu3) to 1:0.9.16~test4-0ubuntu1
pulseaudio-module-zeroconf (1:0.9.15-4ubuntu3) to 1:0.9.16~test4-0ubuntu1
pulseaudio-utils (1:0.9.15-4ubuntu3) to 1:0.9.16~test4-0ubuntu1
pulseaudio-module-udev (1:0.9.16~test4-0ubuntu1)

有什麽建議嗎?

最佳答案

如果您不怕弄髒自己的手,最好的方法是:

apt-cache show packagename

它將根據您的sources.list定義向您顯示可以安裝的軟件包的所有不同版本。您會得到類似的東西(這就是我的樣子):

root@shiny-desktop:/home/shiny# apt-cache show libpulse-browse0
Package: libpulse-browse0
Status: install ok installed
Priority: optional
Section: sound
Installed-Size: 100
Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: i386
Source: pulseaudio
Version: 1:0.9.15-4ubuntu2~ppa1
Depends: libavahi-client3 (>= 0.6.16), libavahi-common3 (>= 0.6.16), libc6 (>= 2.4), libcap1, libdbus-1-3 (>= 1.0.2), libgdbm3, libice6 (>= 1:1.0.0), libpulse0 (= 1:0.9.15-4ubuntu2~ppa1), libsm6, libwrap0 (>= 7.6-4~), libx11-6, libxtst6
Description: PulseAudio client libraries (zeroconf support)
 PulseAudio, previously known as Polypaudio, is a sound server for POSIX and
 WIN32 systems. It is a drop in replacement for the ESD sound server with
 much better latency, mixing/re-sampling quality and overall architecture.
 .
 Client libraries used by applications that access a PulseAudio sound server
 via PulseAudio's native interface.
 .
 This package adds support for zeroconf (aka. Avahi, mdns) discovery of
 PulseAudio sinks and sources by client applications.
Homepage: http://www.pulseaudio.org
Original-Maintainer: Pulseaudio maintenance team <pkg-pulseaudio-devel@lists.alioth.debian.org>

Package: libpulse-browse0
Priority: optional
Section: sound
Installed-Size: 144
Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Pulseaudio maintenance team <pkg-pulseaudio-devel@lists.alioth.debian.org>
Architecture: i386
Source: pulseaudio
Version: 1:0.9.14-0ubuntu20.2
Depends: libavahi-client3 (>= 0.6.16), libavahi-common3 (>= 0.6.16), libc6 (>= 2.4), libcap2 (>= 2.11), libgdbm3, libice6 (>= 1:1.0.0), libpulse0 (>= 0.9.14), libsm6, libx11-6
Filename: pool/main/p/pulseaudio/libpulse-browse0_0.9.14-0ubuntu20.2_i386.deb
Size: 31522
MD5sum: d7bf325c04432507420551d7c4e04737
SHA1: 537037b6cdcf2e36ab91fff73a543b2bc9a9d2f6
SHA256: 25c9a83f669f3f14b0fdd59141fc048e3053ccdcae5817f338260342ae1164d0
Description: PulseAudio client libraries (zeroconf support)
 PulseAudio, previously known as Polypaudio, is a sound server for POSIX and
 WIN32 systems. It is a drop in replacement for the ESD sound server with
 much better latency, mixing/re-sampling quality and overall architecture.
 .
 Client libraries used by applications that access a PulseAudio sound server
 via PulseAudio's native interface.
 .
 This package adds support for zeroconf (aka. Avahi, mdns) discovery of
 PulseAudio sinks and sources by client applications.
Homepage: http://www.pulseaudio.org
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Task: ubuntu-desktop, kubuntu-dvd-live, edubuntu-desktop, xubuntu-live, mobile-mid, mobile-netbook-remix

Package: libpulse-browse0
Priority: optional
Section: sound
Installed-Size: 144
Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Pulseaudio maintenance team <pkg-pulseaudio-devel@lists.alioth.debian.org>
Architecture: i386
Source: pulseaudio
Version: 1:0.9.14-0ubuntu20
Depends: libavahi-client3 (>= 0.6.16), libavahi-common3 (>= 0.6.16), libc6 (>= 2.4), libcap2 (>= 2.11), libgdbm3, libice6 (>= 1:1.0.0), libpulse0 (>= 0.9.14), libsm6, libx11-6
Filename: pool/main/p/pulseaudio/libpulse-browse0_0.9.14-0ubuntu20_i386.deb
Size: 31516
MD5sum: 63d4937b22f83cff5cc5be101caa3f27
SHA1: bb436fa7bc14eaad31a9f3778f1a887d96e2521d
SHA256: 1f3a5e7a4376c0ee406f30a1c5ec03dc5f484dc059ceb61462516bb728c6c1c5
Description: PulseAudio client libraries (zeroconf support)
 PulseAudio, previously known as Polypaudio, is a sound server for POSIX and
 WIN32 systems. It is a drop in replacement for the ESD sound server with
 much better latency, mixing/re-sampling quality and overall architecture.
 .
 Client libraries used by applications that access a PulseAudio sound server
 via PulseAudio's native interface.
 .
 This package adds support for zeroconf (aka. Avahi, mdns) discovery of
 PulseAudio sinks and sources by client applications.
Homepage: http://www.pulseaudio.org
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Task: ubuntu-desktop, kubuntu-dvd-live, edubuntu-desktop, xubuntu-live, mobile-mid, mobile-netbook-remix

隻需檢查可用的其他版本,然後執行:

apt-get install packagname=version

再次以上述輸出為例:

apt-get install ibpulse-browse0=1:0.9.14-0ubuntu20

如您所見,我的pulseaudio來自啟動板上的ppa,因此,如果我想降級/還原為jaunty提供的原始版本,我將使用安裝的所有pulseaudio軟件包進行上述操作。

次佳答案

/etc/apt/preferences中:

Package: *
Pin: release a=jaunty
Pin-Priority: 1001

然後是aptitude install pulseaudio(以及任何不會因依賴關係而自動降級的其他程序包)。

這很可能會引起問題(不正式支持降級或well-tested),但這至少會使版本簡化。

參考資料

本文由Ubuntu問答整理, 博文地址: https://ubuntuqa.com/zh-tw/article/8169.html,未經允許,請勿轉載。