mydumper / mydumper_repo

GNU General Public License v3.0
0 stars 0 forks source link

buster package installed on bookworm #1

Closed YogSottot closed 6 days ago

YogSottot commented 2 weeks ago

Set up a repository in debian 12 bookworm. Installing a package from the repository resulted in installing the buster version.

apt list -a mydumper            
Listing... Done                                                            
mydumper/unknown,now 0.16.7-5~buster amd64 [installed]  
mydumper/unknown 0.16.7-5~bullseye amd64    
mydumper/unknown 0.16.7-5~bookworm amd64
mydumper/stable 0.10.1-1 amd64

so

mydumper --version
mydumper: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

Perhaps it would be worth changing the repository from a flat structure to a separate one for each distribution?

So that it can be connected like this

deb [arch=amd64 signed-by=/etc/apt/keyrings/mydumper.asc] https://mydumper.github.io/mydumper/repo/apt/debian bookworm main

deb [arch=amd64 signed-by=/etc/apt/keyrings/mydumper.asc] https://mydumper.github.io/mydumper/repo/apt/debian bullseye main

deb [arch=amd64 signed-by=/etc/apt/keyrings/mydumper.asc] https://mydumper.github.io/mydumper/repo/apt/debian buster main

deb [arch=amd64 signed-by=/etc/apt/keyrings/mydumper.asc] https://mydumper.github.io/mydumper/repo/apt/ubuntu noble main

deb [arch=amd64 signed-by=/etc/apt/keyrings/mydumper.asc] https://mydumper.github.io/mydumper/repo/apt/ubuntu jammy main

deb [arch=amd64 signed-by=/etc/apt/keyrings/mydumper.asc] https://mydumper.github.io/mydumper/repo/apt/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} main

reprepo can help with that.

Here is an example of my personal repository organized by distribution https://github.com/YogSottot/ppa/

davidducos commented 5 days ago

Hi @YogSottot , Do you know why we get that 'unknown' after package name?

$ apt list libnginx-mod-http-ntlm -a
Listing... Done
libnginx-mod-http-ntlm/unknown 1.19.3-1.gbp3da77b0~noble amd64
YogSottot commented 5 days ago

Hi @YogSottot , Do you know why we get that 'unknown' after package name?

$ apt list libnginx-mod-http-ntlm -a
Listing... Done
libnginx-mod-http-ntlm/unknown 1.19.3-1.gbp3da77b0~noble amd64

https://wiki.debian.org/DebianRepository/Format#Suite

Fixed it by adding Suite: stable to conf/distributions https://github.com/YogSottot/ppa/commit/eb701e53f222aa884d9020d5bd5d8fe61eee6b35#diff-74b9ed207e9335de5a78ff2d6cfb103a9a5338683b0386d269854c783c2ffad7R6

Then run reprepro export and commit / push

apt update

Get:6 https://yogsottot.github.io/ppa/debian bookworm InRelease [1 817 B]                                                                            
Fetched 9 368 B in 2s (4 488 B/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
N: Repository 'https://yogsottot.github.io/ppa/debian bookworm InRelease' changed its 'Suite' value from '' to 'stable'
>apt list libnginx-mod-http-ntlm -a
Listing... Done
libnginx-mod-http-ntlm/stable 1.19.3-1.gbp3da77b0~bookworm amd64