Thanks for the replies, Jacob and HTH!

Your answers caused me to poke around further. It looks like apt and 
apt-get both work the same in debian.

My problem was that I wasn't running "apt update" first. (Sigh.)

Running update and then the install and it works fine. (Huzzah!)

Thanks again!


$ docker run -it python:3 /bin/bash
root@fa0b1041fdd9:/# apt update
Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
Get:2 http://security.debian.org/debian-security buster/updates InRelease 
[65.4 kB]
Get:3 http://deb.debian.org/debian buster-updates InRelease [49.3 kB]
Get:4 http://security.debian.org/debian-security buster/updates/main amd64 
Packages [177 kB]
Get:5 http://deb.debian.org/debian buster/main amd64 Packages [7907 kB]
Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages [5792 
B]
Fetched 8326 kB in 2s (3976 kB/s)                         
Reading package lists... Done
Building dependency tree       
Reading state information... Done
29 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@fa0b1041fdd9:/# apt install ledger
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libboost-filesystem1.67.0 libboost-iostreams1.67.0 libboost-python1.67.0 
libboost-regex1.67.0 libboost-system1.67.0 libpython2.7
Suggested packages:
  elpa-ledger python-ledger
The following NEW packages will be installed:
  ledger libboost-filesystem1.67.0 libboost-iostreams1.67.0 
libboost-python1.67.0 libboost-regex1.67.0 libboost-system1.67.0 
libpython2.7
0 upgraded, 7 newly installed, 0 to remove and 29 not upgraded.
Need to get 4657 kB of archives.
After this operation, 23.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y

(and so on...)


On Monday, February 17, 2020 at 5:06:45 PM UTC-6, Scott Carpenter wrote:
>
> I'm trying on a couple of docker images and getting, for example with 
> Debian:
>
> root@4be055ba3998:/# apt-get install ledger
> Reading package lists... Done
> Building dependency tree       
> Reading state information... Done
> E: Unable to locate package ledger
>
> Thank you!
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/293a5013-0470-448a-be0e-e378568b7fc3%40googlegroups.com.

Reply via email to