sudo apt-get update fornece os seguintes erros e, portanto, não pode atualizar meu sistema

0

sudo apt-get update apresenta o seguinte erro (um pouco mais longo não mostrado aqui) e, portanto, não pode atualizar meu sistema.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
  r-cran-proto
Use 'apt-get autoremove' to remove it.
The following extra packages will be installed:
  libatk1.0-0:i386 libgtk2.0-0:i386
Suggested packages:
  librsvg2-common:i386
The following NEW packages will be installed
  libatk1.0-0:i386 libgtk2.0-0:i386
0 to upgrade, 2 to newly install, 0 to remove and 43 not to upgrade.
1 not fully installed or removed.
Need to get 1,747 kB of archives.
After this operation, 6,674 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
WARNING: The following packages cannot be authenticated!
  libatk1.0-0:i386 libgtk2.0-0:i386
Install these packages without verification? [y/N] 
Err http://in.archive.ubuntu.com/ubuntu/ trusty/main libatk1.0-0 i386 2.10.0-2ubuntu2
Connection failed 
Err http://in.archive.ubuntu.com/ubuntu/ trusty-updates/main libgtk2.0-0 i386 2.24.23-0ubuntu1.4
  Connection failed
    
por sohini 17.02.2017 / 15:25

1 resposta

0

Tente remover "in". de link em

/etc/apt/sources.list

Agora, o que você pode fazer para automatizar isso é:

sudo sed -i 's/in.archive/archive/g' /etc/apt/sources.list
sudo apt-get update -y
sudo sed -i 's/archive/in.archive/g' /etc/apt/sources.list
    
por Zauxst 17.02.2017 / 16:23