Esta linha deb-src-src http://us.archive.ubuntu.com/ubuntu/ utopic main restricted
, Linha 63, em sources.list não é conhecida sudo apt-get update
e está causando falha no Synaptic Package Manager e no Ubuntu Software Center. É seguro excluir esta linha?
Meu sources.list fica assim:
# deb cdrom:[Xubuntu 14.04.1 LTS _Trusty Tahr_ - Release amd64 (20140723)]/ trusty main multiverse restricted universe
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ utopic main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ utopic main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ utopic-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ utopic-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://us.archive.ubuntu.com/ubuntu/ utopic universe
deb-src http://us.archive.ubuntu.com/ubuntu/ utopic universe
deb http://us.archive.ubuntu.com/ubuntu/ utopic-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ utopic-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.archive.ubuntu.com/ubuntu/ utopic multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ utopic multiverse
deb http://us.archive.ubuntu.com/ubuntu/ utopic-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ utopic-updates multiverse
## 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.archive.ubuntu.com/ubuntu/ utopic-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ utopic-backports main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ utopic-security main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ utopic-security main restricted
deb http://us.archive.ubuntu.com/ubuntu/ utopic-security universe
deb-src http://us.archive.ubuntu.com/ubuntu/ utopic-security universe
deb http://us.archive.ubuntu.com/ubuntu/ utopic-security multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ utopic-security 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 utopic partner
deb-src http://archive.canonical.com/ubuntu utopic partner
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu utopic main
deb-src http://extras.ubuntu.com/ubuntu utopic main
deb http://us.archive.ubuntu.com/ubuntu/ utopic-proposed main restricted universe multiverse
# deb-src cdrom:[Xubuntu 14.04.1 LTS _Trusty Tahr_ - Release amd64 (20140723)]/ trusty main multiverse restricted universe
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb-src http://us.archive.ubuntu.com/ubuntu/ utopic main restricted
deb-src-src http://us.archive.ubuntu.com/ubuntu/ utopic main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb-src http://us.archive.ubuntu.com/ubuntu/ utopic-updates main restricted
deb-src-src http://us.archive.ubuntu.com/ubuntu/ utopic-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-src http://us.archive.ubuntu.com/ubuntu/ utopic universe
deb-src-src http://us.archive.ubuntu.com/ubuntu/ utopic universe
deb-src http://us.archive.ubuntu.com/ubuntu/ utopic-updates universe
deb-src-src http://us.archive.ubuntu.com/ubuntu/ utopic-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-src http://us.archive.ubuntu.com/ubuntu/ utopic multiverse
deb-src-src http://us.archive.ubuntu.com/ubuntu/ utopic multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ utopic-updates multiverse
deb-src-src http://us.archive.ubuntu.com/ubuntu/ utopic-updates multiverse
## 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-src http://us.archive.ubuntu.com/ubuntu/ utopic-backports main restricted universe multiverse
deb-src-src http://us.archive.ubuntu.com/ubuntu/ utopic-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ utopic-security main restricted
deb-src-src http://us.archive.ubuntu.com/ubuntu/ utopic-security main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ utopic-security universe
deb-src-src http://us.archive.ubuntu.com/ubuntu/ utopic-security universe
deb-src http://us.archive.ubuntu.com/ubuntu/ utopic-security multiverse
deb-src-src http://us.archive.ubuntu.com/ubuntu/ utopic-security 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-src http://archive.canonical.com/ubuntu utopic partner
deb-src-src http://archive.canonical.com/ubuntu utopic partner
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb-src http://extras.ubuntu.com/ubuntu utopic main
deb-src-src http://extras.ubuntu.com/ubuntu utopic main
deb-src http://us.archive.ubuntu.com/ubuntu/ utopic-proposed main restricted universe multiverse
Responder1
Parece que um script ou comando deu errado e foi anexado -src
a vários deb
s. Você terá que excluir muitas linhas para corrigir isso. Ou, para desfazer esse dano, tente este comando:
sed '62,$s/deb-src/deb/' /etc/apt/sources.list
Inspecione a saída e certifique-se de que:
-src-src
não é visto em nenhuma linha não comentada (aquelas que não começam com#
).- Uma linha with
deb
é seguida por outra comdeb-src
.
Depois de verificar a saída, você pode tornar as alterações permanentes executando:
sudo sed -i.bak '62,$s/deb-src/deb/' /etc/apt/sources.list
Responder2
não precisa removê-lo. basta remover -src
de
deb-src-src http://us.archive.ubuntu.com/ubuntu/ utopic main restricted
para fazer com que pareça:
deb-src http://us.archive.ubuntu.com/ubuntu/ utopic main restricted
Posso ver muitos desses erros em seu arquivo sources.list. Você tem que encontrar e editar todos eles.
abra-o no gedit:sudo gedit /etc/apt/sources.list
então no gedit, Editar > Pesquisar > Substituir
Procure por: deb-src-src
substitua por:deb-src