I installed UPT via cargo. And I'm using Ubuntu under WSL2.
When I attempt to run show subcommand, it works:
Details
```bash
❯ upt show tldr
Package: tldr
Version: 0.6.4-1build6.3
Priority: optional
Section: universe/doc
Source: haskell-tldr
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Haskell Group
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 2903 kB
Depends: libc6 (>= 2.34), libcmark0.30.2 (>= 0.30.2), libffi8 (>= 3.4), libgmp10, git
Conflicts: tldr-py (<< 0.7.0-2~)
Homepage: https://github.com/psibi/tldr-hs#readme
Download-Size: 573 kB
APT-Sources: http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
Description: Haskell tldr client
Haskell tldr client with support for updating and viewing tldr pages.
.
The TLDR pages are a community effort to simplify the beloved man
pages with practical examples. See https://tldr.sh/
```
But when I tried to run install:
❯ upt install tldr
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
So I ran it with sudo:
❯ sudo upt install tldr
sudo: upt: command not found
What is it that I need to do here to allow upt to be run with sudo?
I think I'm missing something obvious but not mentioned in the documentation.
Thanks!
I installed UPT via cargo. And I'm using Ubuntu under WSL2. When I attempt to run
show
subcommand, it works:Details
```bash ❯ upt show tldr Package: tldr Version: 0.6.4-1build6.3 Priority: optional Section: universe/doc Source: haskell-tldr Origin: Ubuntu Maintainer: Ubuntu DevelopersBut when I tried to run
install
:So I ran it with
sudo
:What is it that I need to do here to allow upt to be run with sudo? I think I'm missing something obvious but not mentioned in the documentation. Thanks!