Qarik-Group / install-debs-in-order

Install Debian packages in order
12 stars 1 forks source link

faulty install order #1

Open pihentagy opened 3 years ago

pihentagy commented 3 years ago

Btw apt install ./*.deb solves the problem without using this program.

root@wso2:/tmp/tmp# cat install.sh 
apt-get install --yes libapr1 libdbi1

wget --no-verbose \
http://archive.ubuntu.com/ubuntu/pool/main/p/perl/libperl5.26_5.26.1-6_amd64.deb \
http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb \
http://archive.ubuntu.com/ubuntu/pool/main/g/gdbm/libgdbm5_1.14.1-6_amd64.deb \
http://archive.ubuntu.com/ubuntu/pool/main/p/perl/perl-modules-5.26_5.26.1-6_all.deb \
https://nxlog.co/system/files/products/files/348/nxlog-ce_2.10.2150_ubuntu_bionic_amd64.deb \
http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/multiarch-support_2.27-3ubuntu1.2_amd64.deb
dpkg -i *.deb
root@wso2:/tmp/tmp# bash install.sh 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  libapr1 libdbi1
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/119 kB of archives.
After this operation, 372 kB of additional disk space will be used.
Selecting previously unselected package libapr1:amd64.
(Reading database ... 63753 files and directories currently installed.)
Preparing to unpack .../libapr1_1.6.5-1ubuntu1_amd64.deb ...
Unpacking libapr1:amd64 (1.6.5-1ubuntu1) ...
Selecting previously unselected package libdbi1:amd64.
Preparing to unpack .../libdbi1_0.9.0-5_amd64.deb ...
Unpacking libdbi1:amd64 (0.9.0-5) ...
Setting up libdbi1:amd64 (0.9.0-5) ...
Setting up libapr1:amd64 (1.6.5-1ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
2021-02-11 17:24:22 URL:http://archive.ubuntu.com/ubuntu/pool/main/p/perl/libperl5.26_5.26.1-6_amd64.deb [3531984/3531984] -> "libperl5.26_5.26.1-6_amd64.deb" [1]
2021-02-11 17:24:22 URL:http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb [1048576/1048576] -> "libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb" [1]
2021-02-11 17:24:23 URL:http://archive.ubuntu.com/ubuntu/pool/main/g/gdbm/libgdbm5_1.14.1-6_amd64.deb [26040/26040] -> "libgdbm5_1.14.1-6_amd64.deb" [1]
2021-02-11 17:24:23 URL:http://archive.ubuntu.com/ubuntu/pool/main/p/perl/perl-modules-5.26_5.26.1-6_all.deb [2760256/2760256] -> "perl-modules-5.26_5.26.1-6_all.deb" [1]
2021-02-11 17:24:24 URL:https://nxlog.co/system/files/products/files/348/nxlog-ce_2.10.2150_ubuntu_bionic_amd64.deb [1206700/1206700] -> "nxlog-ce_2.10.2150_ubuntu_bionic_amd64.deb" [1]
2021-02-11 17:24:24 URL:http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/multiarch-support_2.27-3ubuntu1.2_amd64.deb [6920/6920] -> "multiarch-support_2.27-3ubuntu1.2_amd64.deb" [1]
FINISHED --2021-02-11 17:24:24--
Total wall clock time: 2.0s
Downloaded: 6 files, 8.2M in 1.1s (7.51 MB/s)
Selecting previously unselected package libgdbm5:amd64.
(Reading database ... 63766 files and directories currently installed.)
Preparing to unpack libgdbm5_1.14.1-6_amd64.deb ...
Unpacking libgdbm5:amd64 (1.14.1-6) ...
Selecting previously unselected package libperl5.26:amd64.
Preparing to unpack libperl5.26_5.26.1-6_amd64.deb ...
Unpacking libperl5.26:amd64 (5.26.1-6) ...
dpkg: regarding libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb containing libssl1.0.0:amd64, pre-dependency problem:
 libssl1.0.0 pre-depends on multiarch-support
  multiarch-support is not installed.

dpkg: error processing archive libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb (--install):
 pre-dependency problem - not installing libssl1.0.0:amd64
Selecting previously unselected package multiarch-support.
Preparing to unpack multiarch-support_2.27-3ubuntu1.2_amd64.deb ...
Unpacking multiarch-support (2.27-3ubuntu1.2) ...
Selecting previously unselected package nxlog-ce.
Preparing to unpack nxlog-ce_2.10.2150_ubuntu_bionic_amd64.deb ...
Unpacking nxlog-ce (2.10.2150) ...
Selecting previously unselected package perl-modules-5.26.
Preparing to unpack perl-modules-5.26_5.26.1-6_all.deb ...
Unpacking perl-modules-5.26 (5.26.1-6) ...
Setting up libgdbm5:amd64 (1.14.1-6) ...
Setting up multiarch-support (2.27-3ubuntu1.2) ...
dpkg: dependency problems prevent configuration of nxlog-ce:
 nxlog-ce depends on libssl1.0.0 (>= 1.0.0); however:
  Package libssl1.0.0 is not installed.

dpkg: error processing package nxlog-ce (--install):
 dependency problems - leaving unconfigured
Setting up perl-modules-5.26 (5.26.1-6) ...
Setting up libperl5.26:amd64 (5.26.1-6) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for systemd (245.4-4ubuntu3.4) ...
Errors were encountered while processing:
 libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb
 nxlog-ce
root@wso2:/tmp/tmp# 
drnic commented 3 years ago

Bah. Are you saying I never needed to write this script and rather just start using apt install? That's embarrassing :)

drnic commented 3 years ago

I do prefer to not write tools that don't need to exist. Happier to shut this project down rather than fix bugs, if upstream apt implements this feature.

pihentagy commented 3 years ago

I do have spent a few hours figuring this out.