## 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
Оригинальные источники. Список экземпляров Ubuntu 15.04 Google Cloud Compute VM
Я случайно удалил sources.list
файл с моей виртуальной машины Ubuntu, работающей на экземпляре Google Compute Engine.
Как Amazon Web Services, они также имеют свои собственные оптимизированные sources.list
. Мне нужен оригинальный неизмененный, пожалуйста.
ОБНОВЛЕНИЕ: Согласно ответу JakeGould, должна быть резервная копия sources.list
в /etc/apt/
названном, sources.list.save
но я проверил, не мог найти тот файл в моей установке:
$ 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
2 ответа на вопрос
Нет необходимости создавать целые настройки Ubuntu только для того, чтобы получить чистую копию sources.list
. Просто посмотрите в /etc/apt/
каталоге:
ls -la /etc/apt/
В sources.list.save
этом каталоге должен быть каталог, представляющий собой простую параллельную резервную копию оригинала sources.list
в вашей системе. Конечно, любые изменения / настройки, которые вы могли бы внести в него, пропали. Но эй! Лучше, чем ничего. Просто скопируйте файл на место так:
sudo cp /etc/apt/sources.list.save /etc/apt/sources.list
И тебе должно быть хорошо идти.
Похожие вопросы
-
1
Как я смог войти без пароля и без авторизованных ключей?
-
2
Где находится httpd.conf в GCE Apache?
-
3
Как я могу скопировать файлы с Google Cloud Compute Server на мой локальный компьютер
-
-
1
Centos Как дать разрешение на просмотр папки?
-
2
Сломанный sudo в Google Compute Engine
-
2
Подключение к экземплярам виртуальной машины Google Compute Engine
-
1
Google Compute Engine - SSH или RSYNC без пароля
-
1
SSH-подключение в Google Compute
-
0
ssh-add на вычислительном движке Ubuntu VM для выхода
-
0
«Нет поддерживаемых методов аутентификации» при подключении к gcloud с помощью FileZilla