Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache folder creation without sudo not possible #268

Closed
Forage opened this issue Jun 25, 2022 · 1 comment
Closed

Cache folder creation without sudo not possible #268

Forage opened this issue Jun 25, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@Forage
Copy link
Contributor

Forage commented Jun 25, 2022

Reporting a bug 馃悰

The elevate function is not used for mkdir so deb-get won't work without sudo in the command line because without it you don't have the permissions to create something in /var/cache/.

Expected behavior

Run deb-get without sudo in command line.

Actual behavior

The user is presented with an error like WARNING! Updating /var/cache/deb-get/azuredatastudio.json failed. Deleting it. because the mkdir error when creating the cache folder is being suppressed and a file can therefore not be created there.

Steps to reproduce

./deb-get install xxx

System information

Run the following a paste the output below:

/etc/os-release

PRETTY_NAME="Ubuntu 22.04 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

/etc/lsb-release

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04 LTS"

deb-get version

0.2.9
@flexiondotorg flexiondotorg added the bug Something isn't working label Jun 29, 2022
@natanjunges
Copy link
Contributor

Working on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants