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.