Results 1 to 2 of 2

Thread: sources.list.d permission denied

  1. #1
    Join Date
    Nov 2014
    Beans
    40

    sources.list.d permission denied

    I'm trying to install Open VPN using the official instructions available here:

    https://community.openvpn.net/openvp.../OpenVPN3Linux

    However, I'm failing at this step:

    Code:
    # curl -fsSL https://swupdate.openvpn.net/repos/openvpn-repo-pkg-key.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/openvpn-repo-pkg-keyring.gpg
    The terminal prompts:

    Code:
    bash: /etc/apt/sources.list.d/openvpn3.list: Permission denied
    What do I do? Thanks!

  2. #2
    Join Date
    Jul 2009
    Beans
    517
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: sources.list.d permission denied

    Quote Originally Posted by kubasienczyk View Post
    Code:
    # curl -fsSL https://swupdate.openvpn.net/repos/openvpn-repo-pkg-key.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/openvpn-repo-pkg-keyring.gpg
    The hash (#) at the beginning of the command signifies that you need to run it as root. So prior to running them you first need to type
    Code:
    $ sudo -i
    to become root. Once done, press Ctrl+d to exit the root session. You can use sudo along with tee but it's easier to just use sudo -i.

    The other commands that begin with a dollar sign, you run as your normal user.
    Mark your thread as [SOLVED], use Thread Tools on forum page.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •