Problemas ao instalar o qt5 e o sdk para o aplicativo de telefone

1

Eu segui as instruções para baixar o qt5, mas ele falhou. Eu baixei o qt4 do gerenciador de pacotes em 12.10.

Eu então tentei instalar o SDK através do terminal, mas sem sucesso ele trouxe os seguintes erros:

W: Failed to fetch cdrom://Ubuntu 12.10 Quantal Quetzal - Release amd64 (20121017.5)/dists/quantal/main/binary-amd64/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 12.10 Quantal Quetzal - Release amd64 (20121017.5)/dists/quantal/restricted/binary-amd64/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 12.10 Quantal Quetzal - Release amd64 (20121017.5)/dists/quantal/main/binary-i386/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 12.10 Quantal Quetzal - Release amd64 (20121017.5)/dists/quantal/restricted/binary-i386/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

E: Some index files failed to download. They have been ignored, or old ones used instead.

Por favor, dê mais instruções sobre como eu posso obter o lançamento do qt5 e o sdk, para que eu possa começar a escrever programas para o telefone Ubuntu.

    
por user130788 13.02.2013 / 19:38

1 resposta

1

Na verdade, seu problema parece ser que você não configurou um repositório de pacotes de rede e, em vez disso, ainda tem a linha do tempo de instalação, referindo-se à sua mídia de instalação. O mais fácil seria editar o /etc/apt/sources.list ou grep -R 'deb cdrom' /etc/apt/ para ver qual dos arquivos ainda se refere à sua mídia de instalação. Normalmente, isso seria /etc/apt/sources.list . Comente as linhas que começam com deb cdrom: , prefixando um # e, em seguida, salve.

Depois disso, certifique-se de adicionar também alguns repositórios. O método normal é ter conteúdos como estes:

deb http:/<country-code>.archive.ubuntu.com/ubuntu/ quantal main restricted
deb-src http:/<country-code>.archive.ubuntu.com/ubuntu/ quantal main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http:/<country-code>.archive.ubuntu.com/ubuntu/ quantal-updates main restricted
deb-src http:/<country-code>.archive.ubuntu.com/ubuntu/ quantal-updates main restricted

## 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:/<country-code>.archive.ubuntu.com/ubuntu/ quantal universe
deb-src http:/<country-code>.archive.ubuntu.com/ubuntu/ quantal universe
deb http:/<country-code>.archive.ubuntu.com/ubuntu/ quantal-updates universe
deb-src http:/<country-code>.archive.ubuntu.com/ubuntu/ quantal-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:/<country-code>.archive.ubuntu.com/ubuntu/ quantal multiverse
deb-src http:/<country-code>.archive.ubuntu.com/ubuntu/ quantal multiverse
deb http:/<country-code>.archive.ubuntu.com/ubuntu/ quantal-updates multiverse
deb-src http:/<country-code>.archive.ubuntu.com/ubuntu/ quantal-updates multiverse

deb http://security.ubuntu.com/ubuntu quantal-security main restricted
deb-src http://security.ubuntu.com/ubuntu quantal-security main restricted
deb http://security.ubuntu.com/ubuntu quantal-security universe
deb-src http://security.ubuntu.com/ubuntu quantal-security universe
deb http://security.ubuntu.com/ubuntu quantal-security multiverse
deb-src http://security.ubuntu.com/ubuntu quantal-security multiverse

onde <country-code> seria um código de país de duas letras usado em ccTLDs, como us para EUA, de para Alemanha etc. Basicamente, seu repositório de repositório de pacotes "local" é adicionado para maior velocidade. Essas linhas já devem existir e você provavelmente não precisará adicioná-las ou ajustá-las. Simplesmente comentando as linhas que começam com deb cdrom devem ser suficientes.

Após a edição, certifique-se de executar:

sudo apt-get update

e fique atento a outros erros, como os da sua pergunta. Corrija-os até não encontrar erros e, em seguida, instale os pacotes que você precisa ou deseja.

Também não deixe de consultar man sources.list e esta documentação . E aqui está uma ferramenta online para gerar as entradas para sources.list .

Existe também um método gráfico para isso, mas não tenho experiência nisso, pois prefiro editar sources.list . Além disso, o método gráfico difere dependendo do sabor do Ubuntu que você está usando, como baunilha Ubuntu, Kubuntu ... etc.

    
por 0xC0000022L 13.02.2013 / 20:43