I have a constant error in Debian when I want to update my system

1

$ apt-get update

  Obj:1 http://security.debian.org stretch/updates InRelease
  Ign:2 http://deb.debian.org/debian stretch InRelease   
  Obj:3 http://deb.debian.org/debian stretch-updates InRelease
  Obj:4 http://deb.debian.org/debian stretch Release     
  Leyendo lista de paquetes... Hecho
  W: http://security.debian.org/dists/stretch/updates/InRelease: The key(s) 
  in the keyring /etc/apt/trusted.gpg are ignored as the file is not 
   readable by user '_apt' executing apt-key.
   W: http://deb.debian.org/debian/dists/stretch-updates/InRelease: The 
   key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not 
  readable by user '_apt' executing apt-key.
  W: http://deb.debian.org/debian/dists/stretch/Release.gpg: The key(s) in 
   the keyring /etc/apt/trusted.gpg are ignored as the file is not readable 
    by user '_apt' executing apt-key.

$ lsb_release -a

No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 9.1 (stretch)
Release:    9.1
Codename:   stretch

cat /etc/apt/sources.list

#deb http://deb.debian.org/debian/ stretch/updates main contrib
# stretch-updates, previously known as 'volatile'
# A network mirror was not selected during install.  The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
# deb http://deb.debian.org/debian/ stretch-updates main contrib
deb http://deb.debian.org/debian/ stretch main
deb http://security.debian.org/ stretch/updates main
deb http://deb.debian.org/debian/ stretch-updates main
# deb-src http://deb.debian.org/debian/ stretch-updates main contrib

What can I do? it seems as if there are problems with the execution permissions.

    
asked by Marco Leslie 07.11.2017 в 23:02
source

2 answers

1

Try editing the file / etc / apt / source-list with the following information and then do " sudo apt-get -y update "

# stretch-oficiales
deb http://ftp.us.debian.org/debian/ stretch main contrib non-free
deb-src http://ftp.us.debian.org/debian/ stretch main contrib non-free

# stretch-actualizaciones-seguridad
deb http://security.debian.org/debian-security stretch/updates main contrib non-free
deb-src http://security.debian.org/debian-security stretch/updates main contrib non-free

# stretch-updates, previously known as 'volatile'
deb http://ftp.us.debian.org/debian/ stretch-updates main contrib non-free
deb-src http://ftp.us.debian.org/debian/ stretch-updates main contrib non-free

# debian-multimedia
deb http://www.deb-multimedia.org stretch main non-free

If the above does not work for you in this page there are several more examples on how to solve it that I think could help you.

    
answered by 07.11.2017 в 23:25
0

You should try to do the update with the super user in this way:

sudo apt-get update
    
answered by 07.11.2017 в 23:13