bneijt / autotrash

Tool to automatically purge old trashed files
https://bneijt.nl/pr/autotrash/
GNU General Public License v3.0
77 stars 11 forks source link

I can't install it. #40

Closed Immortal-Sty closed 2 years ago

Immortal-Sty commented 2 years ago

System: Ubuntu 20.04 LTS (WSL);

I input :

sudo apt install -y autotrash

And it said :

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package autotrash is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'autotrash' has no installation candidate
MithicSpirit commented 2 years ago

Seems like it's only available on bionic (18.04 LTS): https://packages.ubuntu.com/search?keywords=autotrash&searchon=names&suite=all&section=all. Not sure if there's a way to add that repo in focal (20.04 LTS), but in the meantime you can install it with pip instead.

Immortal-Sty commented 2 years ago

Thank you. I change "focal" to "bionic" in apt source. Then I get it.

MithicSpirit commented 2 years ago

Uhhh I'm not sure that's such a good idea since bionic is for Ubuntu 18.04 and focal is for 20.04 (so most things in bionic will be outdated for you and may cause dependency issues).

bneijt commented 2 years ago

Uhhh I'm not sure that's such a good idea since bionic is for Ubuntu 18.04 and focal is for 20.04 (so most things in bionic will be outdated for you and may cause dependency issues).

Agree, mixing Ubuntu releases is not a good thing. You are probably better of with just installing it via python-pip directly and adding ~/.local/bin to your PATH session environment variable.

Glad to hear you got it working and thank you for reaching out and posting an issue.