8
1
Take ibus-sunpinyin for example, which isn't existed in the squeeze release. I'm not going to switch the whole system to the sid branch, so, I want to download the single package from sid repository and install it like:
# Add the sid repository
sudo mv /tmp/sid.list /etc/apt/sources.list.d/
# Error: can't install because version conflicts of libc6:
# sudo apt-get install ibus-sunpinyin
# This is ok but it will upgrade a lot of mess from sid branch:
# sudo apt-get upgrade ibus-sunpinyin
# So, instead of apt-get install/upgrade, let me download & install the single package.
# However, this errored again because of version conflicts of libc6:
# apt-get install --download-only ibus-sunpinyin
## THEN, WHAT CAN I DO? ##
# Remove the sid repository.
sudo mv /etc/apt/sources.list.d/sid.list /tmp
# Install the single package.
sudo dpkg -i ./ibus-sunpinyin-x.x.x.deb
To download a single package: you can
apt-get download ...
(for apt-get 0.8.11+), oraptitude download ...
. However, I'm also failed tosudo dpkg -i ibus-sunpinyin-x.x.x.deb
due to sid dependencies. – Xiè Jìléi – 2011-08-23T06:04:24.933