[SOLVED] Raspbian (Debian 11): how to install a specific new package?
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Raspbian (Debian 11): how to install a specific new package?
Hello,
due to a (perhaps) bug of ipp-usb version (installed 0.9.17-3),
since I see new version "Now in release 0.9.18" is there; here the bug subject https://github.com/OpenPrinting/ipp-usb/issues/28
is there any recommendation how to upgrade that package only on my pi system?
(I have some printing problems).
Simple Sid Backport
First check if it is in Backports
1) Add the backports repo to /etc/apt/sources.list
deb https://deb.debian.org/debian/ bullseye-backports main contrib non-free
deb-src https://deb.debian.org/debian/ bullseye-backports main contrib non-free
sudo apt update
apt policy packagename
If it is you can install it from backports by doing:
sudo apt install -t bullseye-backports packagename
If not continue the steps to backport it from Sid:
2) Add a deb-src line for sid (not a deb line!) to /etc/apt/sources.list
deb-src https://deb.debian.org/debian unstable main contrib non-free
3) sudo apt update
sudo apt install build-essential packaging-dev debian-keyring devscripts equivs
sudo apt build-dep packagename
4) apt -b source packagename
5) sudo apt install packagename-ver.deb
For versions newer than sid see <uupdate>.
uupdate (in the <devscripts> package) upgrades a source code package from an upstream revision, or e.g. if the newest foo in debian is 1.2,
and upstream is at 1.4: apt-get source foo; wget -nd http://foo.org/foo-1.4.tar.gz; cd foo-1.2; uupdate ../foo-1.4.tar.gz
Package recompile:
1) Add a <deb-src> line for your current release to your sources.list
2) apt update; apt install build-essential devscripts fakeroot; apt build-dep packagename
3) as any user, apt-get source packagename
4) cd packagename-version/; ask me about <debian/rules>;
5) dpkg-buildpackage -uc -us 6) as root, apt install ../packagename-version.deb.
Hello,
due to a (perhaps) bug of ipp-usb version (installed 0.9.17-3),
since I see new version "Now in release 0.9.18" is there; here the bug subject https://github.com/OpenPrinting/ipp-usb/issues/28
is there any recommendation how to upgrade that package only on my pi system?
(I have some printing problems).
sudo apt-get dist-upgrade
didnt upgrade to that last version-
Actually, 9.23 is the current version. Upstream version is on that github you pointed out. Debian Sid also has 9.23, so the easiest way for you to install it is backport from there.
Thanks a lot. My sources looks to be from raspberrypi.org and not debian.org. See below. Before I start messing up, both lines added will not do it worser and will be compatible? not sure. See my remark at the bottom.
Thanks a lot. My sources looks to be from raspberrypi.org and not debian.org. See below. Before I start messing up, both lines added will not do it worser and will be compatible?
Usually you just add the deb-src line for sid. That one is completely safe and you can't mess anything up with it because it's source code packages only.
If you add the regular deb line for sid, be sure to remove it and `apt update` again before you run any `apt upgrade` or you'll end up converting to sid, so that one be super careful. You usually don't have to add that line tho.
The idea is you're taking the source code used to build it for sid, but building it for your current OS with your current libraries. So yes, fully compatible.
Quote:
FAT Letters: todays line
sudo nano /etc/apt/sources.list
another way to do the same thing is `sudo apt edit-sources`
Reading package lists... Done
Selected version '0.9.23-1' (testing) for ipp-usb
NOTICE: 'ipp-usb' packaging is maintained in the 'Git' version control system at: https://salsa.debian.org/printing-team/ipp-usb.git
Please use:
git clone https://salsa.debian.org/printing-team/ipp-usb.git
to retrieve the latest (possibly unreleased) updates to the package.
Skipping already downloaded file 'ipp-usb_0.9.23-1.dsc'
Skipping already downloaded file 'ipp-usb_0.9.23.orig.tar.gz'
Skipping already downloaded file 'ipp-usb_0.9.23-1.debian.tar.xz'
Need to get 0 B of source archives.
Skipping unpack of already unpacked source in ipp-usb-0.9.23
cd ipp-usb-0.9.23
sudo mk-build-deps --install --remove
sudo dch --bpo
Quote:
#dch warning: neither DEBEMAIL nor EMAIL environment variable is set
#dch warning: building email address from username and FQDN
#dch: Did you see those 2 warnings? Press RETURN to continue...
#Select an editor. To change later, run 'select-editor'.
# 1. /bin/nano <---- easiest
# 2. /usr/bin/vim.tiny
# 3. /bin/ed
#Choose 1-3 [1]: 1
#dch: debian/changelog unmodified; exiting.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.