incapaz de instalar o servidor mysql no Ubuntu [fechado]

1

o erro que encontrei durante a atualização no Ubuntu 11.10. desde que eu descobri que o Ubuntu 11.10 suporta muito melhor do que o 12.04 para o matlab, eu reiniciei meu sistema operacional para o Ubuntu 11.10. E mesmo aqui, eu enfrento o mesmo problema. Eu sinto que isso deve ser um problema de onírico

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
    
por karishma 01.06.2013 / 10:00

3 respostas

0

O SQL Server requer que o sistema operacional Microsoft Windows seja executado. Não há como instalar o SQL Server no Ubuntu. Isso só pode acontecer usando alguma forma de VM.

Verifique se você tem atualizações importantes de segurança marcadas.

ParainstalaroMySQLnoUbuntu12.04,apenaspressioneCtrl+Alt+TnoseutecladoparaabriroTerminal.Quandoseabre,executeo(s)comando(s)abaixo:

sudoapt-getupdate&&sudoapt-getupgradesudoapt-getinstallmysql-server

IssoinstalaráapenasoMySQL5.5

Para instalar o Apache2 com PHP5 e suporte a MySQL no 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

Fonte: Obrigado a Shankar Raman

    
por Mitch 01.06.2013 / 10:22
0

O Ubuntu Oneric (11.10) está em fim de vida há muito tempo, e os repositórios não existem mais nele em link

12.04 é a versão mais antiga com vida de suporte decente restante. 10.04 ainda tem alguns meses de suporte para a versão do servidor, mas eu recomendo 12.04 ou 14.04 se você puder usar qualquer um desses.

    
por drinxy 31.01.2015 / 01:04
0

Como já foi dito, o Ubuntu Oneric é EOL, portanto seus repositórios oficiais não são mais mantidos. Mas se você deseja continuar usando os repositórios oficiais não mais atualizados, você pode mudar seus repositórios atuais (não mais disponíveis, e isso é a causa do erro) para aqueles hospedados em old-releases.ubuntu.com executando o seguinte comando; ele atualizará seu /etc/apt/sources.list atual para usar os repositórios não mais atualizados:

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

Depois disso, você pode executar sudo apt-get update para atualizar o apt cache seguido de sudo apt-get install mysql-server para instalar mysql-server .

Detalhamento do comando:

  • sudo mv /etc/apt/sources.list /etc/apt/sources.list.backup : renomeia /etc/apt/sources.list para /etc/apt/sources.list.backup
  • sed 's/http:\/\/.*\.ubuntu\.com/http:\/\/old-releases\.ubuntu\.com/' /etc/apt/sources.list.backup : substitui qualquer string que começa com http:// e termina com .ubuntu.com com http://old-releases.ubuntu.com dentro de /etc/apt/sources.list.backup
  • sudo tee /etc/apt/sources.list : envia tudo para /etc/apt/sources.list
por kos 15.04.2015 / 01:39