ошибкой, с которой я столкнулся при обновлении в ubuntu 11.10. Поскольку я обнаружил, что ubuntu 11.10 поддерживает Matlab намного лучше, чем 12.04, я перезагрузил свою ОС на ubuntu 11.10. И даже здесь я сталкиваюсь с той же проблемой. Я считаю, что это проблема из oneiric
sudo apt-get update
Err http://in.archive.ubuntu.com oneiric InRelease
Err http://in.archive.ubuntu.com oneiric-updates InRelease
Err http://in.archive.ubuntu.com oneiric-backports InRelease
Err http://in.archive.ubuntu.com oneiric-proposed InRelease
Err http://in.archive.ubuntu.com oneiric Release.gpg
Unable to connect to in.archive.ubuntu.com:http: [IP: 91.189.92.156 80]
Err http://in.archive.ubuntu.com oneiric-updates Release.gpg
Unable to connect to in.archive.ubuntu.com:http: [IP: 91.189.92.156 80]
Err http://in.archive.ubuntu.com oneiric-backports Release.gpg
Unable to connect to in.archive.ubuntu.com:http: [IP: 91.189.92.156 80]
Err http://extras.ubuntu.com oneiric InRelease
Err http://in.archive.ubuntu.com oneiric-proposed Release.gpg
Unable to connect to in.archive.ubuntu.com:http: [IP: 91.189.92.156 80]
Err http://extras.ubuntu.com oneiric Release.gpg
Unable to connect to extras.ubuntu.com:http:
Err http://security.ubuntu.com oneiric-security InRelease
Err http://security.ubuntu.com oneiric-security Release.gpg
Unable to connect to security.ubuntu.com:http: [IP: 91.189.91.14 80]
Err http://archive.ubuntu.com oneiric InRelease
Err http://archive.ubuntu.com oneiric Release.gpg
Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.177 80]
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/oneiric/InRelease
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/oneiric/InRelease
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/oneiric-updates/InRelease
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/oneiric-backports/InRelease
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/oneiric-security/InRelease
W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/oneiric/InRelease
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/oneiric-proposed/InRelease
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/oneiric/Release.gpg Unable to connect to in.archive.ubuntu.com:http: [IP: 91.189.92.156 80]
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/oneiric-updates/Release.gpg Unable to connect to in.archive.ubuntu.com:http: [IP: 91.189.92.156 80]
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/oneiric-backports/Release.gpg Unable to connect to in.archive.ubuntu.com:http: [IP: 91.189.92.156 80]
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/oneiric-proposed/Release.gpg Unable to connect to in.archive.ubuntu.com:http: [IP: 91.189.92.156 80]
W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/oneiric/Release.gpg Unable to connect to extras.ubuntu.com:http:
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/oneiric-security/Release.gpg Unable to connect to security.ubuntu.com:http: [IP: 91.189.91.14 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/oneiric/Release.gpg Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.177 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
/etc/apt/sources.list
# deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)]/ dists/oneiric/main/binary-i386/
# deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)]/ oneiric main restricted
deb-src http://archive.ubuntu.com/ubuntu oneiric main restricted #Added by software-properties
deb http://in.archive.ubuntu.com/ubuntu/ oneiric main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ oneiric restricted main multiverse #Added by software-properties
deb http://in.archive.ubuntu.com/ubuntu/ oneiric-updates main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ oneiric-updates restricted main multiverse #Added by software-properties
deb http:// in.archive.ubuntu.com/ubuntu/ oneiric multiverse
deb http://in.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse
deb http://in.archive.ubuntu.com/ubuntu/ oneiric-backports main restricted multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ oneiric-backports main restricted multiverse #Added by software-properties
deb http://security.ubuntu.com/ubuntu oneiric-security main restricted
deb-src http://security.ubuntu.com/ubuntu oneiric-security restricted main multiverse #Added by software-properties
deb http://security.ubuntu.com/ubuntu oneiric-security multiverse
# deb http://archive.canonical.com/ubuntu oneiric partner
# deb-src http://archive.canonical.com/ubuntu oneiric partner
deb http://extras.ubuntu.com/ubuntu oneiric main
deb http://in.archive.ubuntu.com/ubuntu/ oneiric-proposed restricted main multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ oneiric-proposed restricted main multiverse #Added by software-properties
deb-src http://extras.ubuntu.com/ubuntu oneiric main
SQL Server требует, чтобы Microsoft Windows ОС работала. Нет никакого способа, которым можно установить SQL Server на Ubuntu. Это может только произойти с помощью некоторой формы VM.
Удостоверьтесь, что Вам проверили Важные обновления системы защиты.
Для установки MySQL на Ubuntu 12.04 просто нажмите Ctrl+Alt+T на клавиатуре для открытия Terminal. Когда это откроется, выполните команду (команды) ниже:
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install mysql-server
Это установит просто MySQL 5.5
Устанавливать Поддержку MySQL Apache2 With PHP5 And На Ubuntu 12.04 LTS
sudo apt-get install mysql-server mysql-client
sudo apt-get install apache2
sudo apt-get install php5 libapache2-mod-php5
Источник: благодаря Shankar Raman
Ubuntu Oneric (11.10) был очень долгим сроком жизни, и хранилища для него больше не существуют на http://in.archive.ubuntu.com/ubuntu/ [ 111]
12.04 - самая ранняя версия с достойной поддержкой. 10.04 все еще имеет пару месяцев поддержки для серверной версии, но я бы порекомендовал 12.04 или 14.04, если вы можете использовать любой из них.
Как это уже было указано, Ubuntu, Oneric является EOL, таким образом, его официальные репозитории больше не сохраняются. Но если Вы хотите продолжать использовать больше обновленные официальные репозитории, можно изменить ток (не более доступный, и это - причина ошибки), репозитории к размещенным на old-releases.ubuntu.com путем выполнения следующей команды; это обновит Ваш ток /etc/apt/sources.list
использовать non-longer-updated репозитории:
sudo mv /etc/apt/sources.list /etc/apt/sources.list.backup && sed 's/http:\/\/.*\.ubuntu\.com/http:\/\/old-releases\.ubuntu\.com/' /etc/apt/sources.list.backup | sudo tee /etc/apt/sources.list
И после этого можно работать sudo apt-get update
обновить apt
кэш, сопровождаемый sudo apt-get install mysql-server
устанавливать mysql-server
.
Разбивка команды:
sudo mv /etc/apt/sources.list /etc/apt/sources.list.backup
: переименовывает /etc/apt/sources.list
кому: /etc/apt/sources.list.backup
sed 's/http:\/\/.*\.ubuntu\.com/http:\/\/old-releases\.ubuntu\.com/' /etc/apt/sources.list.backup
: замены любая строка, запускающаяся с http://
и окончание .ubuntu.com
с http://old-releases.ubuntu.com
в /etc/apt/sources.list.backup
sudo tee /etc/apt/sources.list
: ouputs все к /etc/apt/sources.list