Charles Curley <charlescur...@charlescurley.com> writes:

> On Tue, 15 Oct 2024 11:27:23 -0400
> Lee <ler...@gmail.com> wrote:
>
>> # backports so I can get the latest Realtek wifi drivers
>> deb https://deb.debian.org/debian bookworm-backports main non-free-firmware
>> deb-src https://deb.debian.org/debian bookworm-backports main 
>> non-free-firmware
>
> The only thing I can see is that the instructions specify http, not
> https. https://backports.debian.org/Instructions/#index2h2 As you say,
> that should have produced an error when you tried it. Just for the
> halibut, try it as http.
>
> Or not. I'm not finding it either.
>
> root@hawk:~# apt update
> Hit:1 http://deb.debian.org/debian bookworm InRelease
> Hit:2 http://security.debian.org/debian-security bookworm-security InRelease
> Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
> Hit:4 http://deb.debian.org/debian bookworm-backports InRelease
> Ign:5 http://repo.vivaldi.com/stable/deb stable InRelease
> Hit:6 http://repo.vivaldi.com/stable/deb stable Release
> Reading package lists... Done
> Building dependency tree... Done
> Reading state information... Done
> 14 packages can be upgraded. Run 'apt list --upgradable' to see them.
> root@hawk:~# apt search firmware-realtek
> Sorting... Done
> Full Text Search... Done
> firmware-realtek/stable,now 20230210-5 all [installed]
>   Binary firmware for Realtek wired/wifi/BT adapters
>
> firmware-realtek-rtl8723cs-bt/stable 20181104-2 all
>   Bluetooth firmware for Realtek RTL8723CS
>
> root@hawk:~# apt-cache search firmware-realtek
> firmware-realtek - Binary firmware for Realtek wired/wifi/BT adapters
> firmware-realtek-rtl8723cs-bt - Bluetooth firmware for Realtek RTL8723CS
> root@hawk:~# cat /etc/apt/sources.list.d/backports.bookworm.list 
> deb http://deb.debian.org/debian bookworm-backports main non-free-firmware
> root@hawk:~# 
>
> Yet the Debian package search shows it there. 
> https://packages.debian.org/search?searchon=names&section=all&suite=all&arch=any&exact=0&keywords=firmware-realtek
>
> And I can pull it in manually.
>
> charles@hawk:~$ wget 
> http://http.us.debian.org/debian/pool/non-free-firmware/f/firmware-nonfree/firmware-realtek_20240709-2~bpo12+1_all.deb
> --2024-10-15 11:39:42--  
> http://http.us.debian.org/debian/pool/non-free-firmware/f/firmware-nonfree/firmware-realtek_20240709-2~bpo12+1_all.deb
> Resolving http.us.debian.org (http.us.debian.org)... 64.50.236.52, 
> 64.50.233.100, 208.80.154.139, ...
> Connecting to http.us.debian.org (http.us.debian.org)|64.50.236.52|:80... 
> connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 2162540 (2.1M) [application/vnd.debian.binary-package]
> Saving to: ‘firmware-realtek_20240709-2~bpo12+1_all.deb’
>
> firmware-realtek_20240709-2~bpo12+1_all.de 
> 100%[=====================================================================================>]
>    2.06M  2.70MB/s    in 0.8s    
>
> 2024-10-15 11:39:43 (2.70 MB/s) - 
> ‘firmware-realtek_20240709-2~bpo12+1_all.deb’ saved [2162540/2162540]
>
> charles@hawk:~$ file firmware-realtek_20240709-2~bpo12+1_all.deb 
> firmware-realtek_20240709-2~bpo12+1_all.deb: Debian binary package (format 
> 2.0), with control.tar.xz, data compression xz
> charles@hawk:~$ 
>
> -- 
> Does anybody read signatures any more?
>
> https://charlescurley.com
> https://charlescurley.com/blog/
>

Note that when you add the backports repository, it was given the
priority of 100, which means
* Packages in it will not be installed unless explicitly requested
(e.g. apt install -t bookworm-backports <your_package>)
* Packages in it will not be upgraded unless explicitly requested
(e.g. apt upgrade -t bookworm-backports)

To see packages versions available in all your repositories, you can use
`apt policy':

,----
| $ apt policy firmware-realtek
| firmware-realtek:
|   Installed: 20230210-5
|   Candidate: 20230210-5
|   Version table:
|      20240709-2~bpo12+1 100
|         200 https://deb.debian.org/debian 
bookworm-backports/non-free-firmware amd64 Packages
|  *** 20230210-5 500
|         500 https://deb.debian.org/debian bookworm/non-free-firmware amd64 
Packages
|         100 /var/lib/dpkg/status
`----

Here you can see the version from bookworm-backports
(20240709-2~bpo12+1) but it's not selected (because its priority is
100).

You can change the priority of bookworm-backports to let apt install
packages from it by default.  More info please check out `man
apt_preferences'.

-- 
Regards,
Xiyue Deng

Reply via email to