Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: unable to update the vm using apt-get update, throwing 403 permission denied error

  1. #1
    Join Date
    Jan 2017
    Beans
    11

    unable to update the vm using apt-get update, throwing 403 permission denied error

    Hi All,

    I have 4 Ubuntu 1604 boxes and when i want to install any package it tells , 403 forbidden error.
    we have tried to run below commands
    Code:
    #apt-get clean
    #cd /var/lib/apt
    mv lists lists_old
    mkdir -p lists/partial
    apt-get clean
    apt-get update
    But afte this also we could see the same issue.
    We have removed the file and copied the content from a working vm, but still the same.

    when we try to install any package we get the following error
    Code:
    cat /etc/apt/sources.list|grep "xenial-updates"
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Package walinuxagent 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 'walinuxagent' has no installation candidate
    root@SMULWEBPM2U001:~# apt-get search walinuxagent
    E: Invalid operation search
    root@SMULWEBPM2U001:~# apt-get search walinuxagent
    E: Invalid operation search
    root@SMULWEBPM2U001:~# apt search walinuxagent
    Sorting... Done
    Full Text Search... Done
    root@SMULWEBPM2U001:~# apt search WALinuxAgent
    Sorting... Done
    Full Text Search... Done
    root@SMULWEBPM2U001:~# apt-get install elinks
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Unable to locate package
    Any assistance on this highly appreciated

    Thanks Kailash B
    Last edited by deadflowr; October 13th, 2017 at 05:39 PM. Reason: added code tags to discern between code and comments

  2. #2
    Join Date
    Feb 2008
    Location
    Texas
    Beans
    29,807
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: unable to update the vm using apt-get update, throwing 403 permission denied erro

    Thread moved to New to Ubuntu for a better fit.

  3. #3
    Join Date
    Jul 2013
    Location
    Wisconsin
    Beans
    4,952

    Re: unable to update the vm using apt-get update, throwing 403 permission denied erro

    Quote Originally Posted by kailashms View Post
    root@SMULWEBPM2U001:~# apt-get search walinuxagent
    E: Invalid operation search
    That's not a 403 error.
    That is the expected behavior.
    apt-get does not have a 'search' function anymore. Use 'apt search' instead.


    Quote Originally Posted by kailashms View Post
    root@SMULWEBPM2U001:~# apt-get install elinks
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Unable to locate package
    That's not a 403 error.
    Since elinks has been in the Universe repository since before 12.04, check your apt sources to ensure that you have Universe enabled.


    If you are getting a 403 error when running 'apt update', then check your apt sources for a typo or an obsolete repo, or try a different repo.

  4. #4
    Join Date
    Jan 2017
    Beans
    11

    Re: unable to update the vm using apt-get update, throwing 403 permission denied erro

    thanks for that information
    but again when you try to instal the any packages it shows the same error:

    Code:
    Reading package lists... Done
     Building dependency tree
     Reading state information... Done
     Package walinuxagent 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 'walinuxagent' has no installation candidate
    Also when you run the apt-get update
    we are getting 403 forbiddedn for some repos
    why is that
    Last edited by deadflowr; October 13th, 2017 at 05:40 PM. Reason: code tags

  5. #5
    Join Date
    Jul 2013
    Location
    Wisconsin
    Beans
    4,952

    Re: unable to update the vm using apt-get update, throwing 403 permission denied erro

    See Post #3 for those answers.

    Please use [code] tags for terminal output, to retain the formatting.

    If you need help checking your list of sources, then show us the complete contents of /etc/apt/sources/list and of /etc/aptsources/list.d/*...in [code] tags, of course.

  6. #6
    Join Date
    Jan 2017
    Beans
    11

    Re: unable to update the vm using apt-get update, throwing 403 permission denied erro

    root@SMULWEBPM2U001:~# apt search walinuxagent
    Sorting... Done
    Full Text Search... Done
    root@SMULWEBPM2U001:~#

    This is what i am getting when i run search command

  7. #7
    Join Date
    Jan 2017
    Beans
    11

    Re: unable to update the vm using apt-get update, throwing 403 permission denied erro

    Code:
    root@SMULWEBPM2U001:~# ls -lh /etc/apt/sources.list.d/
    total 0
    root@SMULWEBPM2U001:~# apt search walinuxagent
    
    
    ## Note, this file is written by cloud-init on first boot of an instance
    ## modifications made here will not survive a re-bundle.
    ## if you wish to make changes you can:
    ## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg
    ##     or do the same in user-data
    ## b.) add sources in /etc/apt/sources.list.d
    ## c.) make changes to template file /etc/cloud/templates/sources.list.tmpl
     
    # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
    # newer versions of the distribution.
    deb http://azure.archive.ubuntu.com/ubuntu/ xenial main restricted
    deb-src http://azure.archive.ubuntu.com/ubuntu/ xenial main restricted
     
    ## Major bug fix updates produced after the final release of the
    ## distribution.
    deb http://azure.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
    deb-src http://azure.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
     
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team. Also, please note that software in universe WILL NOT receive any
    ## review or updates from the Ubuntu security team.
    deb http://azure.archive.ubuntu.com/ubuntu/ xenial universe
    deb-src http://azure.archive.ubuntu.com/ubuntu/ xenial universe
    deb http://azure.archive.ubuntu.com/ubuntu/ xenial-updates universe
    deb-src http://azure.archive.ubuntu.com/ubuntu/ xenial-updates universe
     
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team, and may not be under a free licence. Please satisfy yourself as to
    ## your rights to use the software. Also, please note that software in
    ## multiverse WILL NOT receive any review or updates from the Ubuntu
    ## security team.
    deb http://azure.archive.ubuntu.com/ubuntu/ xenial multiverse
    deb-src http://azure.archive.ubuntu.com/ubuntu/ xenial multiverse
    deb http://azure.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
    deb-src http://azure.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
     
    ## N.B. software from this repository may not have been tested as
    ## extensively as that contained in the main release, although it includes
    ## newer versions of some applications which may provide useful features.
    ## Also, please note that software in backports WILL NOT receive any review
    ## or updates from the Ubuntu security team.
    deb http://azure.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
    deb-src http://azure.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
     
    deb http://security.ubuntu.com/ubuntu xenial-security main restricted
    deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
    deb http://security.ubuntu.com/ubuntu xenial-security universe
    deb-src http://security.ubuntu.com/ubuntu xenial-security universe
    deb http://security.ubuntu.com/ubuntu xenial-security multiverse
    deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
     
    ## Uncomment the following two lines to add software from Canonical's
    ## 'partner' repository.
    ## This software is not part of Ubuntu, but is offered by Canonical and the
    ## respective vendors as a service to Ubuntu users.
    # deb http://archive.canonical.com/ubuntu xenial partner
    # deb-src http://archive.canonical.com/ubuntu xenial partner
    Last edited by wildmanne39; October 12th, 2017 at 04:40 PM. Reason: added code tags

  8. #8
    Join Date
    Feb 2008
    Location
    Texas
    Beans
    29,807
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: unable to update the vm using apt-get update, throwing 403 permission denied erro

    Please use code tags - if you are using New Reply button - highlight text and use the # button in the text box header.

    If using Quick Reply then [code] at the beginning and [/code] at the end.

  9. #9
    Join Date
    Jul 2013
    Location
    Wisconsin
    Beans
    4,952

    Re: unable to update the vm using apt-get update, throwing 403 permission denied erro

    Try a different mirror.

  10. #10
    Join Date
    Jan 2017
    Beans
    11

    Re: unable to update the vm using apt-get update, throwing 403 permission denied erro

    tried that one as well.

Page 1 of 2 12 LastLast

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
  •