Comando sudo apt update

1. Comando sudo apt update

Fênix
Pipoka

(usa Ubuntu)

Enviado em 09/11/2021 - 08:43h

Oi galerinha, bom dia!

Dei um sudo apt update no terminal e apareceu isso:

Sou iniciante e não sei como posso resolver isso.

~$ sudo apt update
Atingido:1 https://dl.google.com/linux/chrome/deb stable InRelease
Atingido:2 http://archive.ubuntu.com/ubuntu focal InRelease
Atingido:3 http://archive.canonical.com/ubuntu focal InRelease
Atingido:4 http://ppa.launchpad.net/qbittorrent-team/qbittorrent-stable/ubuntu focal InRelease
Atingido:5 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Atingido:6 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Atingido:7 http://archive.ubuntu.com/ubuntu focal-security InRelease
Lendo listas de pacotes... Pronto
Construindo árvore de dependências
Lendo informação de estado... Pronto
26 pacotes podem ser atualizados. Corra 'apt list --upgradable' para vê-los.
W: Target Packages (partner/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:58
W: Target Packages (partner/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:58
W: Target Packages (partner/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:58
W: Target Translations (partner/i18n/Translation-pt_BR) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:58
W: Target Translations (partner/i18n/Translation-pt) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:58
W: Target Translations (partner/i18n/Translation-pt_PT) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:58
W: Target Translations (partner/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:58
W: Target DEP-11 (partner/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:58
W: Target DEP-11 (partner/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:58
W: Target DEP-11-icons-small (partner/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:58
W: Target DEP-11-icons (partner/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:58
W: Target DEP-11-icons-hidpi (partner/dep11/[email protected]) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:58
W: Target CNF (partner/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:58
W: Target CNF (partner/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:58
W: Target Packages (partner/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:59
W: Target Packages (partner/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:59
W: Target Packages (partner/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:59
W: Target Translations (partner/i18n/Translation-pt_BR) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:59
W: Target Translations (partner/i18n/Translation-pt) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:59
W: Target Translations (partner/i18n/Translation-pt_PT) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:59
W: Target Translations (partner/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:59
W: Target DEP-11 (partner/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:59
W: Target DEP-11 (partner/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:59
W: Target DEP-11-icons-small (partner/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:59
W: Target DEP-11-icons (partner/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:59
W: Target DEP-11-icons-hidpi (partner/dep11/[email protected]) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:59
W: Target CNF (partner/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:59
W: Target CNF (partner/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:59
W: Target Packages (partner/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:58
W: Target Packages (partner/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:58
W: Target Packages (partner/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:58
W: Target Translations (partner/i18n/Translation-pt_BR) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:58
W: Target Translations (partner/i18n/Translation-pt) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:58
W: Target Translations (partner/i18n/Translation-pt_PT) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:58
W: Target Translations (partner/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:58
W: Target DEP-11 (partner/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:58
W: Target DEP-11 (partner/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:58
W: Target DEP-11-icons-small (partner/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:58
W: Target DEP-11-icons (partner/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:58
W: Target DEP-11-icons-hidpi (partner/dep11/[email protected]) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:58
W: Target CNF (partner/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:58
W: Target CNF (partner/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:58
W: Target Packages (partner/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:59
W: Target Packages (partner/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:59
W: Target Packages (partner/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:59
W: Target Translations (partner/i18n/Translation-pt_BR) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:59
W: Target Translations (partner/i18n/Translation-pt) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:59
W: Target Translations (partner/i18n/Translation-pt_PT) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:59
W: Target Translations (partner/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:59
W: Target DEP-11 (partner/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:59
W: Target DEP-11 (partner/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:59
W: Target DEP-11-icons-small (partner/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:59
W: Target DEP-11-icons (partner/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:59
W: Target DEP-11-icons-hidpi (partner/dep11/[email protected]) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:59
W: Target CNF (partner/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:59
W: Target CNF (partner/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:43 and /etc/apt/sources.list:59


  


2. Re: Comando sudo apt update

Clodoaldo Santos
clodoaldops

(usa Linux Mint)

Enviado em 09/11/2021 - 11:32h

1- Ative "Repositórios Parceiros da Canonical" para ter acesso a alguns programas extras. Para isto vá em Programas e Atualizações > Outros Programas e selecione a opção "Parceiros da Canonical"

2- Atualize seu sistema. Para isto abra o terminal e rode o comando:
sudo apt update && sudo apt upgrade



3. Re:

Rafael Grether
rafael_grether

(usa FreeBSD)

Enviado em 09/11/2021 - 19:16h

Poste aqui o resultado do comando abaixo.
Parece-me que há 2 repositórios com conflito (duplicidade)

cat -n /etc/apt/sources.list



4. Re: Comando sudo apt update

Fênix
Pipoka

(usa Ubuntu)

Enviado em 10/11/2021 - 16:30h


rafael_grether escreveu:

Poste aqui o resultado do comando abaixo.
Parece-me que há 2 repositórios com conflito (duplicidade)

cat -n /etc/apt/sources.list


[email protected]:~$ cat -n /etc/apt/sources.list
1 # deb cdrom:[Ubuntu 20.04.3 LTS _Focal Fossa_ - Release amd64 (20210819)]/ focal main restricted
2
3 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
4 # newer versions of the distribution.
5 deb http://archive.ubuntu.com/ubuntu focal main restricted
6 # deb-src http://br.archive.ubuntu.com/ubuntu/ focal main restricted
7
8 ## Major bug fix updates produced after the final release of the
9 ## distribution.
10 deb http://archive.ubuntu.com/ubuntu focal-updates main restricted
11 # deb-src http://br.archive.ubuntu.com/ubuntu/ focal-updates main restricted
12
13 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
14 ## team. Also, please note that software in universe WILL NOT receive any
15 ## review or updates from the Ubuntu security team.
16 deb http://archive.ubuntu.com/ubuntu focal universe
17 # deb-src http://br.archive.ubuntu.com/ubuntu/ focal universe
18 deb http://archive.ubuntu.com/ubuntu focal-updates universe
19 # deb-src http://br.archive.ubuntu.com/ubuntu/ focal-updates universe
20
21 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
22 ## team, and may not be under a free licence. Please satisfy yourself as to
23 ## your rights to use the software. Also, please note that software in
24 ## multiverse WILL NOT receive any review or updates from the Ubuntu
25 ## security team.
26 deb http://archive.ubuntu.com/ubuntu focal multiverse
27 # deb-src http://br.archive.ubuntu.com/ubuntu/ focal multiverse
28 deb http://archive.ubuntu.com/ubuntu focal-updates multiverse
29 # deb-src http://br.archive.ubuntu.com/ubuntu/ focal-updates multiverse
30
31 ## N.B. software from this repository may not have been tested as
32 ## extensively as that contained in the main release, although it includes
33 ## newer versions of some applications which may provide useful features.
34 ## Also, please note that software in backports WILL NOT receive any review
35 ## or updates from the Ubuntu security team.
36 deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
37 # deb-src http://br.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
38
39 ## Uncomment the following two lines to add software from Canonical's
40 ## 'partner' repository.
41 ## This software is not part of Ubuntu, but is offered by Canonical and the
42 ## respective vendors as a service to Ubuntu users.
43 deb http://archive.canonical.com/ubuntu focal partner
44 deb-src http://archive.canonical.com/ubuntu focal partner
45
46 deb http://archive.ubuntu.com/ubuntu focal-security main restricted
47 # deb-src http://security.ubuntu.com/ubuntu focal-security main restricted
48 deb http://archive.ubuntu.com/ubuntu focal-security universe
49 # deb-src http://security.ubuntu.com/ubuntu focal-security universe
50 deb http://archive.ubuntu.com/ubuntu focal-security multiverse
51 # deb-src http://security.ubuntu.com/ubuntu focal-security multiverse
52
53 # This system was installed using small removable media
54 # (e.g. netinst, live or single CD). The matching "deb cdrom"
55 # entries were disabled at the end of the installation process.
56 # For information about how to configure apt package sources,
57 # see the sources.list(5) manual.
58 deb http://archive.canonical.com/ubuntu focal partner
59 deb http://archive.canonical.com/ubuntu focal partner
[email protected]:~$ ^C
[email protected]:~$
[email protected]:~$ cat -n /etc/apt/sources.list
1 # deb cdrom:[Ubuntu 20.04.3 LTS _Focal Fossa_ - Release amd64 (20210819)]/ focal main restricted
2
3 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
4 # newer versions of the distribution.
5 deb http://archive.ubuntu.com/ubuntu focal main restricted
6 # deb-src http://br.archive.ubuntu.com/ubuntu/ focal main restricted
7
8 ## Major bug fix updates produced after the final release of the
9 ## distribution.
10 deb http://archive.ubuntu.com/ubuntu focal-updates main restricted
11 # deb-src http://br.archive.ubuntu.com/ubuntu/ focal-updates main restricted
12
13 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
14 ## team. Also, please note that software in universe WILL NOT receive any
15 ## review or updates from the Ubuntu security team.
16 deb http://archive.ubuntu.com/ubuntu focal universe
17 # deb-src http://br.archive.ubuntu.com/ubuntu/ focal universe
18 deb http://archive.ubuntu.com/ubuntu focal-updates universe
19 # deb-src http://br.archive.ubuntu.com/ubuntu/ focal-updates universe
20
21 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
22 ## team, and may not be under a free licence. Please satisfy yourself as to
23 ## your rights to use the software. Also, please note that software in
24 ## multiverse WILL NOT receive any review or updates from the Ubuntu
25 ## security team.
26 deb http://archive.ubuntu.com/ubuntu focal multiverse
27 # deb-src http://br.archive.ubuntu.com/ubuntu/ focal multiverse
28 deb http://archive.ubuntu.com/ubuntu focal-updates multiverse
29 # deb-src http://br.archive.ubuntu.com/ubuntu/ focal-updates multiverse
30
31 ## N.B. software from this repository may not have been tested as
32 ## extensively as that contained in the main release, although it includes
33 ## newer versions of some applications which may provide useful features.
34 ## Also, please note that software in backports WILL NOT receive any review
35 ## or updates from the Ubuntu security team.
36 deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
37 # deb-src http://br.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
38
39 ## Uncomment the following two lines to add software from Canonical's
40 ## 'partner' repository.
41 ## This software is not part of Ubuntu, but is offered by Canonical and the
42 ## respective vendors as a service to Ubuntu users.
43 deb http://archive.canonical.com/ubuntu focal partner
44 deb-src http://archive.canonical.com/ubuntu focal partner
45
46 deb http://archive.ubuntu.com/ubuntu focal-security main restricted
47 # deb-src http://security.ubuntu.com/ubuntu focal-security main restricted
48 deb http://archive.ubuntu.com/ubuntu focal-security universe
49 # deb-src http://security.ubuntu.com/ubuntu focal-security universe
50 deb http://archive.ubuntu.com/ubuntu focal-security multiverse
51 # deb-src http://security.ubuntu.com/ubuntu focal-security multiverse
52
53 # This system was installed using small removable media
54 # (e.g. netinst, live or single CD). The matching "deb cdrom"
55 # entries were disabled at the end of the installation process.
56 # For information about how to configure apt package sources,
57 # see the sources.list(5) manual.
58 deb http://archive.canonical.com/ubuntu focal partner
59 deb http://archive.canonical.com/ubuntu focal partner
[email protected]:~$


5. Re:

Rafael Grether
rafael_grether

(usa FreeBSD)

Enviado em 10/11/2021 - 19:10h

As linhas 43 e 58 estão duplicadas.
Altere o arquivo /etc/apt/sources.list e remova ou comente as duas ultimas linhas do arquivo:

#deb http://archive.canonical.com/ubuntu focal partner
#deb http://archive.canonical.com/ubuntu focal partner

Salve e tente novamente. Irá funcionar.







Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts