Showing posts with label error. Show all posts
Showing posts with label error. Show all posts

apt gpg key error on ubuntu 14.04.3

solution 1
==============
 # apt-get clean
 # cd /var/lib/apt
 # mv lists lists.old
 # mkdir -p lists/partial
 # apt-get clean
 # apt-get update

solution 2
===============
Run below script
===============
 #!/bin/bash

OLDIFS=$IFS
IFS=$'\n'

lines=`sudo apt-get update 2>&1 | grep "NO_PUBKEY"`

for line in $lines
do

        key=`echo $line | tail --bytes=17`

        sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $key

        SOMETHINGDONE="true"

done

IFS=$OLDIFS

if [ $SOMETHINGDONE ]
then
        sudo apt-get update
fi

PYCURL ERROR Couldnt resolve proxy

Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock error was
14: PYCURL ERROR 5 - "Couldn't resolve proxy 'fe80::1%eth0]'"
Error: Cannot find a valid baseurl for repo: base

Solution:-

use   the below commands to see if any http variables are set

set | grep -i http
env | grep  -i http

# http_proxy='http://[fe80::1%eth0]:13128'
# unset http_proxy

problem resolved