Original sources.list do Ubuntu 15.04 Google Cloud Compute VM instance

1

Eu acidentalmente excluí o arquivo sources.list da minha VM do Ubuntu em execução em uma instância do Google Compute Engine.

Como Amazon Web Services, eles também têm seu próprio sources.list otimizado. Eu preciso de um original não modificado, por favor.

UPDATE: De acordo com a resposta de JakeGould , deve haver um backup do sources.list no /etc/apt/ chamado sources.list.save , mas eu verifiquei não encontrei o arquivo na minha instalação:

$ ls -la
total 64 
drwxr-xr-x 6 root root 4096 Sep 17 21:06 .
drwxr-xr-x 100 root root 4096 Sep 17 21:22 ..
drwxr-xr-x 2 root root 4096 Sep 9 06:54 apt.conf.d
drwxr-xr-x 2 root root 4096 Apr 7 14:44 preferences.d
-rw-r--r-- 1 root root 592 Sep 17 21:20 sources.list
drwxr-xr-x 2 root root 4096 Sep 2 07:40 sources.list.d
-rw-r--r-- 1 root root 17481 Sep 17 21:06 trusted.gpg
-rw-r--r-- 1 root root 12335 Sep 2 07:17 trusted.gpg~
drwxr-xr-x 2 root root 4096 Apr 7 14:44 trusted.gpg.d
    
por Bruno Finger 17.09.2015 / 23:17

2 respostas

2
## 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://us-central1.gce.archive.ubuntu.com/ubuntu/ vivid main
deb-src http://us-central1.gce.archive.ubuntu.com/ubuntu/ vivid main

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us-central1.gce.archive.ubuntu.com/ubuntu/ vivid-updates main
deb-src http://us-central1.gce.archive.ubuntu.com/ubuntu/ vivid-updates main

## 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://us-central1.gce.archive.ubuntu.com/ubuntu/ vivid universe
deb-src http://us-central1.gce.archive.ubuntu.com/ubuntu/ vivid universe
deb http://us-central1.gce.archive.ubuntu.com/ubuntu/ vivid-updates universe
deb-src http://us-central1.gce.archive.ubuntu.com/ubuntu/ vivid-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://us-central1.gce.archive.ubuntu.com/ubuntu/ vivid multiverse
# deb-src http://us-central1.gce.archive.ubuntu.com/ubuntu/ vivid multiverse
# deb http://us-central1.gce.archive.ubuntu.com/ubuntu/ vivid-updates multiverse
# deb-src http://us-central1.gce.archive.ubuntu.com/ubuntu/ vivid-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## 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://us-central1.gce.archive.ubuntu.com/ubuntu/ vivid-backports main restricted universe multiverse
# deb-src http://us-central1.gce.archive.ubuntu.com/ubuntu/ vivid-backports main restricted universe 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 vivid partner
# deb-src http://archive.canonical.com/ubuntu vivid partner

deb http://security.ubuntu.com/ubuntu vivid-security main
deb-src http://security.ubuntu.com/ubuntu vivid-security main
deb http://security.ubuntu.com/ubuntu vivid-security universe
deb-src http://security.ubuntu.com/ubuntu vivid-security universe
# deb http://security.ubuntu.com/ubuntu vivid-security multiverse
# deb-src http://security.ubuntu.com/ubuntu vivid-security multiverse
    
por 18.09.2015 / 19:29
0

Não há necessidade de construir uma configuração completa do Ubuntu apenas para obter uma cópia limpa do sources.list . Basta procurar no diretório /etc/apt/ :

ls -la /etc/apt/

Deve haver um sources.list.save nesse diretório que é basicamente um backup simples lado-a-lado do sources.list original em seu sistema. É claro que quaisquer modificações / ajustes que você tenha feito serão eliminados. Mas ei! É melhor que nada. Basta copiar o arquivo no lugar assim:

sudo cp /etc/apt/sources.list.save /etc/apt/sources.list

E você deve ser bom para ir.

    
por 19.09.2015 / 06:06