Since KGIII menitoned the removed post in post #6, here it is with very minor amendment.
There's an interesting case with the local installation of .deb files which happens on this installation of debian trixie and on the other debian machines here. Since there's a bit of such local installing happening here, it may be of interest to others.
The difference is that apt needs ./ prepended to install a downloaded .deb file from the computer's filesystem if the full pathname is not provided in the apt install command. If ./ is not prepended, apt will look for the named file through the repositories which have been configured in the sources.list. Below is an example, using simulation, with a downloaded .deb file which appears in the debian repositories named: cowsay_3.03+dfsg2-8_all.deb, and a .deb file which is not in the debian repository named: add2_0.1-1_amd64.deb.
The finding here is that without the prepended ./, and without the full pathname provided, apt cannot find the .deb file which is present in the directory of the computer's filesystem, because it's searching the debian repos.
Code:
[flip@flop ~]$ ls
add2_0.1-1_amd64.deb
[flip@flop ~]$ apt -s install add2_0.1-1_amd64.deb
NOTE: This is only a simulation!
apt needs root privileges for real execution.
Keep also in mind that locking is deactivated,
so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package add2_0.1-1_amd64.deb
With the prepended ./, the .deb file will install:
Code:
[flip@flop ~]$ apt -s install ./add2_0.1-1_amd64.deb
NOTE: This is only a simulation!
apt needs root privileges for real execution.
Keep also in mind that locking is deactivated,
so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'add2' instead of './add2_0.1-1_amd64.deb'
<snip>
The following NEW packages will be installed:
add2
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Inst add2 (0.1 local-deb [amd64])
Conf add2 (0.1 local-deb [amd64])
In the case of the file which already exists in the debian repositories, the same prepending is necessary on the machines here to install the .deb file which is in a directory on the filesystem of the computer.
Code:
[flip@flop ~]ls
cowsay_3.03+dfsg2-8_all.deb
[flip@flop ~]$ apt -s install cowsay_3.03+dfsg2-8_all.deb
NOTE: This is only a simulation!
apt needs root privileges for real execution.
Keep also in mind that locking is deactivated,
so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package cowsay_3.03+dfsg2-8_all.deb
apt can't locate the package because it's looking for it in the repo, and in the repo it's called: cowsay, without the appended versioning.
With the prepended ./, apt will install it:
Code:
[flip@flop ~]$ apt -s install ./cowsay_3.03+dfsg2-8_all.deb
NOTE: This is only a simulation!
apt needs root privileges for real execution.
Keep also in mind that locking is deactivated,
so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'cowsay' instead of './cowsay_3.03+dfsg2-8_all.deb'
<snip>
Suggested packages:
filters cowsay-off
The following NEW packages will be installed:
cowsay
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Inst cowsay (3.03+dfsg2-8 Debian:testing, local-deb [all])
Conf cowsay (3.03+dfsg2-8 Debian:testing, local-deb [all])
This matter of installation is all moot if the full pathname is provided, as described in the article since that works as intended and expected.
Code:
[flip@flop ~]$ apt -s install /home/flip/cowsay_3.03+dfsg2-8_all.deb
NOTE: This is only a simulation!
apt needs root privileges for real execution.
Keep also in mind that locking is deactivated,
so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'cowsay' instead of '/home/flip/cowsay_3.03+dfsg2-8_all.deb'
<snip>
Suggested packages:
filters cowsay-off
The following NEW packages will be installed:
cowsay
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Inst cowsay (3.03+dfsg2-8 Debian:testing, local-deb [all])
Conf cowsay (3.03+dfsg2-8 Debian:testing, local-deb [all])