signalwire / freeswitch

FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to a versatile software implementation that runs on any commodity hardware. From a Raspberry PI to a multi-core server, FreeSWITCH can unlock the telecommunications potential of any device.
https://freeswitch.com/#getting-started
Other
3.62k stars 1.43k forks source link

freeswitch is not upgraded when the os is upgraded from debian 10->11 and 11->12 #1542

Open abma opened 2 years ago

abma commented 2 years ago

i've upgraded debian 10 to 11 and changed freeswitch list from

deb [signed-by=/usr/share/keyrings/freeswitch-archive-keyring.gpg] http://files.freeswitch.org/repo/deb/debian-release/ buster main

to

deb [signed-by=/usr/share/keyrings/freeswitch-archive-keyring.gpg] http://files.freeswitch.org/repo/deb/debian-release/ bullseye main

but the packages of freeswitch aren't upgraded:

$ dpkg -l |grep freeswitch
ii  freeswitch                        1.10.7~release~19~883d2cb662~buster-1~buster+1 amd64        Cross-Platform Scalable Multi-Protocol Soft Switch

To Reproduce Steps to reproduce the behavior:

  1. upgrade debian from 10 to 11
  2. change in freeswitch.list buster to bullseye
  3. run apt update && apt-get upgrade

Expected behavior debian should upgrade freeswitch packages to debian 11, but nothing happens.

apt policy freeswitch
freeswitch:
  Installed: 1.10.7~release~19~883d2cb662~buster-1~buster+1
  Candidate: 1.10.7~release~19~883d2cb662~buster-1~buster+1
  Version table:
 *** 1.10.7~release~19~883d2cb662~buster-1~buster+1 100
        100 /var/lib/dpkg/status
     1.10.7~release~19~883d2cb662~bullseye-1~bullseye+1 500
        500 http://files.freeswitch.org/repo/deb/debian-release bullseye/main amd64 Packages

it seems the version compare detects the buster version newer as the bullseye version.

abma commented 2 years ago

i guess the problem "automagically" solves for me, when the next release is made.

IMHO the problem is, that the codename is inside the version name: buster > bullseye.

abma commented 2 years ago

as workarround this helped:

/etc/apt/preferences.d# cat freeswitch 
Package: *  
Pin: origin freeswitch.signalwire.com
Pin-Priority: 1000
abma commented 2 years ago

when "updating" freeswitch to the bullseye packages, apt complained about downgrading the packages:

so the version name should be changed: the codename should be removed to avoid such problem(s) in the future. i.e.

1.10.7~release~19~883d2cb662~buster-1~buster+1 -> 1.10.7~release~19~883d2cb662~

Andy-Seattle commented 1 year ago

Abma I have this same issue on 1.10.8. Had it all working under Debian 10 but after upgrading to Debian 11 and changing all the lists to bullseye it isn't pulling it and still thinks it is buster.

Did you do anything else to get it pointing to Bullseye instead of Buster? Thanks Andy

abma commented 1 year ago

https://github.com/signalwire/freeswitch/issues/1542#issuecomment-1047142714