Is ledger available in debian or ubuntu package manager?

44 views
Skip to first unread message

Scott Carpenter

unread,
Feb 17, 2020, 6:06:45 PM2/17/20
to Ledger
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!

Jacob MacDonald

unread,
Feb 17, 2020, 6:22:25 PM2/17/20
to Ledger
(On Pop!_OS here, but) Ledger seems to be in the Ubuntu universe list.
Are those enabled in your docker images? I've had to manually allow
them on every Debian-based install I've used.

o1bigtenor

unread,
Feb 17, 2020, 6:46:22 PM2/17/20
to ledge...@googlegroups.com
Just checked using a search engine - - - - on debian its just apt
install ledger.
Ubuntu IIRC is sudo install ledger.

Dunno why you're not finding it.
Maybe time to check your /etc/apt/sources.list file.

HTH

Scott Carpenter

unread,
Feb 17, 2020, 7:59:22 PM2/17/20
to Ledger
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...)
Reply all
Reply to author
Forward
0 new messages