Skip to content

Commit fb85898

Browse files
committed
debian/ubuntu: pin tarantool-dev/tarantool-common
The situation occurs on Debian Bullseye (where tarantool-2.6 is in the base repositories), when we enable our repository for tarantool-1.10. The installer.sh script pins tarantool package from our repository. But we should pin tarantool-dev package too, otherwise apt-get will unable to install it: | $ apt-get install -y tarantool-dev | <...> | The following packages have unmet dependencies: | tarantool-dev : Depends: tarantool (= 2.6.0-1) but | 1.10.11.0.gf0b0e7ecf-1 is to be installed | E: Unable to correct problems, you have held broken pack We should also pin tarantool-common, otherwise apt-get will install incorrect version of the package: | $ apt-get install -y tarantool | <...> | $ dpkg -l | grep tarantool | ii tarantool 1.10.11.0.gf0b0e7ecf-1 amd64 <...> | ii tarantool-common 2.6.0-1 all <...> | ii tarantool-dev 1.10.11.0.gf0b0e7ecf-1 amd64 <...> `tarantoolctl rocks` will not work with those tarantool and tarantool-common versions, see tarantool/tarantool#5429. Fixes #10
1 parent 8cc2608 commit fb85898

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

installer.tpl.sh

+2
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,8 @@ install_apt ()
211211
echo "deb-src https://download.tarantool.org/tarantool/modules/${os}/ ${dist} main" >> ${apt_source_path}
212212
mkdir -p /etc/apt/preferences.d/
213213
echo -e "Package: tarantool\nPin: origin download.tarantool.org\nPin-Priority: 1001" > /etc/apt/preferences.d/tarantool
214+
echo -e "\nPackage: tarantool-common\nPin: origin download.tarantool.org\nPin-Priority: 1001" >> /etc/apt/preferences.d/tarantool
215+
echo -e "\nPackage: tarantool-dev\nPin: origin download.tarantool.org\nPin-Priority: 1001" >> /etc/apt/preferences.d/tarantool
214216
echo "The repository is setup! Tarantool can now be installed."
215217

216218
apt_update

static/installer.sh

+2
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,8 @@ install_apt ()
245245
echo "deb-src https://download.tarantool.org/tarantool/modules/${os}/ ${dist} main" >> ${apt_source_path}
246246
mkdir -p /etc/apt/preferences.d/
247247
echo -e "Package: tarantool\nPin: origin download.tarantool.org\nPin-Priority: 1001" > /etc/apt/preferences.d/tarantool
248+
echo -e "\nPackage: tarantool-common\nPin: origin download.tarantool.org\nPin-Priority: 1001" >> /etc/apt/preferences.d/tarantool
249+
echo -e "\nPackage: tarantool-dev\nPin: origin download.tarantool.org\nPin-Priority: 1001" >> /etc/apt/preferences.d/tarantool
248250
echo "The repository is setup! Tarantool can now be installed."
249251

250252
apt_update

0 commit comments

Comments
 (0)