Skip to content
New issue

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

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Unable to install insync on Ubuntu 22.04 #901

Closed
Mo-way opened this issue Oct 6, 2023 · 3 comments
Closed

Unable to install insync on Ubuntu 22.04 #901

Mo-way opened this issue Oct 6, 2023 · 3 comments

Comments

@Mo-way
Copy link

Mo-way commented Oct 6, 2023

Reporting a bug 🐛

Expected behavior

I have a fresh Ubuntu 22.04 machine, fresh deb-get install.
Insync should install successfully.
Other packages such as sublime-merge or zotero install successfully.

Actual behavior

user@host:$ deb-get install insync
gpg: keybox '/usr/share/keyrings/insync-archive-keyring.gpg' created
gpg: failed to create temporary file '/root/.gnupg/.#lk0x0000563ae03e5150.host.49322': No such file or directory
gpg: connecting dirmngr at '/root/.gnupg/S.dirmngr' failed: No such file or directory
gpg: keyserver receive failed: No dirmngr
  [+] Updating: /etc/apt/sources.list.d/insync.list
Get:1 http://apt.insync.io/ubuntu jammy InRelease [5,535 B]
Err:1 http://apt.insync.io/ubuntu jammy InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A684470CACCAF35C
Reading package lists... Done
W: GPG error: http://apt.insync.io/ubuntu jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A684470CACCAF35C
E: The repository 'http://apt.insync.io/ubuntu jammy InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Steps to reproduce

Run deb-get install insync

System information

/etc/os-release

PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 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.3 LTS

deb-get version

0.3.9

deb-get update

  [+] Updating /etc/deb-get/01-main
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  110k    0  110k    0     0   141k      0 --:--:-- --:--:-- --:--:--  141k
  [+] Updating cache of supported apps in the background
Hit:1 http://de.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://de.archive.ubuntu.com/ubuntu jammy-updates InRelease
[...]
Reading package lists...
W: https://packages.microsoft.com/ubuntu/22.04/prod/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
@github-actions
Copy link

github-actions bot commented Oct 6, 2023

Hello there 👋
Thanks for submitting your first issue to the deb-get project 🐛 We'll try and take a look at your issue soon ⏲

In the meantime you might want to join the Wimpys World Discord 🗣 where we have a large community of Linux 🐧 enthusiasts and passionate open source developers 🧑‍💻

You might also be interested in following Wimpys World Twitch 📡 channel where Wimpy streams let's code video, including this project, several times a week. A back catalog of past live stream and other Linux related content is available on Wimpys World YouTube 📺 channel.

@Mo-way
Copy link
Author

Mo-way commented Oct 6, 2023

Fixed it with the command from PR #731

mkdir -p /root/.gnupg
sudo gpg --no-default-keyring --keyring /usr/share/keyrings/insync-archive-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv A684470CACCAF35C

Gives:

gpg: WARNING: unsafe permissions on homedir '/root/.gnupg'
gpg: keybox '/usr/share/keyrings/insync-archive-keyring.gpg' created
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: key A684470CACCAF35C: public key "Insynchq Inc <services@insynchq.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1

Now I'm able to install successfully:

deb-get install insync

Gives:

  [+] Updating: /etc/apt/sources.list.d/insync.list
Get:1 http://apt.insync.io/ubuntu jammy InRelease [5,535 B]
Get:2 http://apt.insync.io/ubuntu jammy/non-free amd64 Packages [842 B]
Get:3 http://apt.insync.io/ubuntu jammy/contrib amd64 Packages [1,524 B]
Fetched 7,901 B in 0s (28.6 kB/s)    
Reading package lists... Done
Selecting previously unselected package insync.

@philclifford
Copy link
Member

The root problem was that you didn't have the '/root/.gnupg' directory.
The fix would have been to sudo gpg -k > /dev/null
You should sudo chmod 700 /root/.gnupg

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants