LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-30-2023, 09:32 AM   #1
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,155
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
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).

sudo apt-get dist-upgrade

didnt upgrade to that last version-
 
Old 01-30-2023, 11:13 AM   #2
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,886
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
You could try to install it from Debian Backports.

or install it from Testing/Sid.

Quote:
https://wiki.debian.org/SimpleBackportCreation
http://ircbots.debian.net/factoids/f...e+sid+backport
Also see https://wiki.debian.org/BuildingFormalBackports

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.
 
Old 01-30-2023, 11:55 AM   #3
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,388

Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
Quote:
Originally Posted by floppy_stuttgart View Post
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.

https://wiki.debian.org/SimpleBackportCreation
 
1 members found this post helpful.
Old 01-30-2023, 01:09 PM   #4
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,155

Original Poster
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
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.

FAT Letters: todays line

sudo nano /etc/apt/sources.list
Quote:
deb http://raspbian.raspberrypi.org/raspbian/ bullseye main contrib non-free rpi
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
Remark: I have asked the https://forums.raspberrypi.com if they can update the package ipp-usb of pi OS to 9.23 (looks like above could mess-up my system when I see this https://forums.raspberrypi.com/viewtopic.php?t=345410)

Last edited by floppy_stuttgart; 01-30-2023 at 02:14 PM.
 
Old 01-30-2023, 06:09 PM   #5
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,388

Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
Quote:
Originally Posted by floppy_stuttgart View Post
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`

Last edited by enigma9o7; 01-30-2023 at 06:13 PM.
 
1 members found this post helpful.
Old 01-30-2023, 06:14 PM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

as per craigevil's second suggestion, I also suggest you backport it yourself. See https://wiki.debian.org/SimpleBackportCreation

Evo2.

Last edited by evo2; 01-30-2023 at 06:20 PM.
 
1 members found this post helpful.
Old 01-31-2023, 07:57 AM   #7
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,155

Original Poster
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by evo2 View Post
Hi,

as per craigevil's second suggestion, I also suggest you backport it yourself. See https://wiki.debian.org/SimpleBackportCreation

Evo2.
Thanks. I feel warmer with the topic. I will have a look.

Last edited by floppy_stuttgart; 01-31-2023 at 10:46 AM.
 
Old 01-31-2023, 11:50 AM   #8
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,155

Original Poster
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
So far done according https://wiki.debian.org/SimpleBackportCreation

on the raspberry pi 1 server..

uname -m
Quote:
armv6l
sudo nano /etc/apt/sources.list
Quote:
deb http://raspbian.raspberrypi.org/raspbian/ bullseye main contrib non-free rpi
deb-src https://deb.debian.org/debian/ testing main contrib non-free
sudo apt-get update
Quote:
# errors announced and solution below found on a forum https://stackoverflow.com/questions/...-key-is-not-av
sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 648ACFD622F3D138
sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 0E98404D386FA1D9
sudo apt-get update

rmadison ipp-usb --architecture armhf
Quote:
#ipp-usb | 0.9.17-3+b4 | stable | armhf
#ipp-usb | 0.9.23-1+b1 | testing | armhf
#ipp-usb | 0.9.23-1+b1 | unstable | armhf
rmadison ipp-usb --architecture armel
Quote:
ipp-usb | 0.9.17-3+b4 | stable | armel
ipp-usb | 0.9.23-1+b1 | testing | armel
ipp-usb | 0.9.23-1+b1 | unstable | armel
rmadison ipp-usb --architecture armv6l
Quote:
#.. no output
sudo apt-get source ipp-usb/testing
Quote:
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.
sudo fakeroot debian/rules binary
dpkg-buildpackage -b -us -uc
sudo apt install ../ipp-usb_*_*.deb

new ipp-usb installed

Last edited by floppy_stuttgart; 01-31-2023 at 02:22 PM. Reason: backports changed to testing
 
Old 01-31-2023, 12:37 PM   #9
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,388

Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
You have to add a deb-src line for sid to your sources. That is step 2 in craigevil's instructions.

so
Code:
sudo apt edit sources
and add:
Quote:
deb-src https://deb.debian.org/debian/ sid main contrib non-free
then update package database:
Code:
sudo apt update
You need to install build dependencies:
Code:
sudo apt build-dep ipp-usb
Then build the new package from source:
Code:
apt -b source ipp-usb
and install it:
Code:
sudo apt install ./ipp-usb*.deb

Last edited by enigma9o7; 01-31-2023 at 12:45 PM.
 
Old 01-31-2023, 03:09 PM   #10
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,388

Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
I see above you edited and looks like you got it installed, congrats!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
LXer: Raspbian GNU/Linux upgrade from Stretch to Raspbian Buster 10 LXer Syndicated Linux News 0 07-26-2019 06:12 PM
LXer: Raspbian GNU/Linux upgrade from Jessie to Raspbian Stretch 9 LXer Syndicated Linux News 0 03-01-2018 07:50 PM
LXer: Raspbian GNU/Linux upgrade from Wheezy to Raspbian Jessie 8 LXer Syndicated Linux News 1 06-09-2016 12:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration