Porblema com MergeList [RESOLVIDO]

1. Porblema com MergeList [RESOLVIDO]

Rogerio Nunes Calistro
Calistro

(usa Ubuntu)

Enviado em 16/10/2024 - 14:21h

Boa tarde, estou com um problema no meu servidor linux. Após realizar o update do sistema ocorre o seguinte erro:

Problem with MergeList /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble-updates_main_i18n_Translation-en.
A lista de pacotes ou o ficheiro de status não pode ser analisado ou aberto.

Gostaria de saber o que pode ser feito para corrigir este erro.
Obs: Meu servidor está instalado somente no modo texto.

Desde já agradeço pela atenção.


  


2. Re: Porblema com MergeList [RESOLVIDO]

Mauriciodez
Mauriciodez

(usa Debian)

Enviado em 16/10/2024 - 14:24h



V aí se resolve
sudo rm -vf /var/lib/apt/lists/*Translation-en && sudo apt update 



------------------------------------------------------| Linux User #621728 |------------------------------------------------------

" Nem sempre é amigo aquele que te tira do buraco !!! ( Saddam Hussein )"

------------------------------------------------------| Linux User #621728 |------------------------------------------------------




3. Porblema com MergeList

Rogerio Nunes Calistro
Calistro

(usa Ubuntu)

Enviado em 16/10/2024 - 14:34h

Olá Mauriciodez, o problema continua após executar o comando que em enviou. Segue print do erro que persiste.


4. Re: Porblema com MergeList [RESOLVIDO]

Mauriciodez
Mauriciodez

(usa Debian)

Enviado em 16/10/2024 - 14:49h




seu problema não parece ser o relatado no primeiro post ... na verdade o problema do primeiro post parece ser um problema secundário ... faz o seguinte ... manda pra gente esse erro em texto pq assim da pra gente fazer uma busca avançada por uma solução... copia do terminal e cola aqui no fórum !!

------------------------------------------------------| Linux User #621728 |------------------------------------------------------

" Nem sempre é amigo aquele que te tira do buraco !!! ( Saddam Hussein )"

------------------------------------------------------| Linux User #621728 |------------------------------------------------------




5. Re: Porblema com MergeList [RESOLVIDO]

Mauriciodez
Mauriciodez

(usa Debian)

Enviado em 16/10/2024 - 14:54h


a IA do VoL sugeriu o seguinte
1. Remova todas as listas, incluindo os arquivos de status:

```bash
sudo rm -rvf /var/lib/apt/lists
sudo mkdir -p /var/lib/apt/lists/partial
```

2. Atualize a lista de pacotes:

```bash
sudo apt update
```

3. Limpe o cache do `apt`:

```bash
sudo apt clean
```

4. Atualize novamente a lista de pacotes:

```bash
sudo apt update
```

5. Tente instalar ou atualizar os pacotes novamente. Esse procedimento deve baixar todas as listas de pacotes e recriar os arquivos necessários.


------------------------------------------------------| Linux User #621728 |------------------------------------------------------

" Nem sempre é amigo aquele que te tira do buraco !!! ( Saddam Hussein )"

------------------------------------------------------| Linux User #621728 |------------------------------------------------------




6. Porblema com MergeList

Rogerio Nunes Calistro
Calistro

(usa Ubuntu)

Enviado em 16/10/2024 - 16:18h

Mauriciodez, conforme as informações que passou da IA, ainda ocorre o erro, mas agora em outro modulo. Segue imagem de update e upgrade.



7. Re: Porblema com MergeList

Mauriciodez
Mauriciodez

(usa Debian)

Enviado em 16/10/2024 - 16:22h

Calistro escreveu:

Mauriciodez, conforme as informações que passou da IA, ainda ocorre o erro, mas agora em outro modulo. Segue imagem de update e upgrade.


jovem ... se ajuda aí ... manda isso como texto ... a gente não sabe todas as respostas de cor, as vezes temos que pesquisar por termos específicos e ficar digitando o que está em imagem não é muito agradável !!!

Seleciona todo o texto do terminal, clica com o botão direito, copia e cola aqui no fórum !!!

EDIT: copie e cole tb o comando que foi usado !!!

------------------------------------------------------| Linux User #621728 |------------------------------------------------------

" Nem sempre é amigo aquele que te tira do buraco !!! ( Saddam Hussein )"

------------------------------------------------------| Linux User #621728 |------------------------------------------------------




8. Re: Porblema com MergeList [RESOLVIDO]

Rogerio Nunes Calistro
Calistro

(usa Ubuntu)

Enviado em 16/10/2024 - 16:42h

usuario@protector:~$ sudo apt-get update
[sudo] password for alex:
Hit:1 http://archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://security.ubuntu.com/ubuntu noble-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease
WARNING:root:cannot read /var/lib/command-not-found/commands.db.metadata: 'utf-8' codec can't decode byte 0xc7 in position 5: invalid continuation byte
Traceback (most recent call last):
File "/usr/lib/cnf-update-db", line 32, in <module>
col.create(db)
File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 96, in create
self._fill_commands(con)
File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 143, in _fill_commands
self._parse_single_commands_file(con, sub.stdout)
File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 185, in _parse_single_commands_file
suite=tagf.section["suite"]
~~~~~~~~~~~~^^^^^^^^^
KeyError: 'suite'
Reading package lists... Error!
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi'
E: Sub-process returned an error code
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble_restricted_binary-amd64_Packages
E: The package lists or status file could not be parsed or opened.



usuario@protector:~$ sudo apt-get upgrade
Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble_restricted_binary-amd64_Packages
E: The package lists or status file could not be parsed or opened.



9. Re: Porblema com MergeList

Mauriciodez
Mauriciodez

(usa Debian)

Enviado em 16/10/2024 - 16:50h

Calistro escreveu:
E: Problem with MergeList /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble_restricted_binary-amd64_Packages


 sudo rm /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble_restricted_binary-amd64_Packages 
sudo mkdir -p /var/lib/apt/lists/partial 
sudo apt update && sudo apt upgrade 


EDIT: se der erro poste todas as saidas de todos os comandos que foram dados !!!

------------------------------------------------------| Linux User #621728 |------------------------------------------------------

" Nem sempre é amigo aquele que te tira do buraco !!! ( Saddam Hussein )"

------------------------------------------------------| Linux User #621728 |------------------------------------------------------




10. Re: Porblema com MergeList [RESOLVIDO]

Rogerio Nunes Calistro
Calistro

(usa Ubuntu)

Enviado em 16/10/2024 - 17:18h


usuario@protector:~$ sudo rm /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble_restricted_binary-amd64_Packages
[sudo] password for usuario:
usuario@protector:~$ sudo mkdir -p /var/lib/apt/lists/partial
usuario@protector:~$ sudo apt update && sudo apt upgrade
Hit:1 http://archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://security.ubuntu.com/ubuntu noble-security InRelease
Get:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
Hit:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Get:5 http://archive.ubuntu.com/ubuntu noble/restricted amd64 Packages [93.9 kB]
Get:6 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [597 kB]
Get:7 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [706 kB]
Fetched 1523 kB in 3s (515 kB/s)
WARNING:root:cannot read /var/lib/command-not-found/commands.db.metadata: 'utf-8' codec can't decode byte 0xc7 in position 5: invalid continuation byte
Traceback (most recent call last):
File "/usr/lib/cnf-update-db", line 32, in <module>
col.create(db)
File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 96, in create
self._fill_commands(con)
File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 143, in _fill_commands
self._parse_single_commands_file(con, sub.stdout)
File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 185, in _parse_single_commands_file
suite=tagf.section["suite"]
~~~~~~~~~~~~^^^^^^^^^
KeyError: 'suite'
Reading package lists... Error!
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi'
E: Sub-process returned an error code
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble_restricted_i18n_Translation-en
E: The package lists or status file could not be parsed or opened.



11. Porblema com MergeList - Resolvido

Rogerio Nunes Calistro
Calistro

(usa Ubuntu)

Enviado em 16/10/2024 - 19:53h

Eu vou fechar este tópico, a solução foi remover o que estava no /var/lib/apt/lists/. Segue a resolução:

usuario@protector:~$ sudo rm -rf /var/lib/apt/lists/* && sudo apt-get update
Get:1 http://archive.ubuntu.com/ubuntu noble InRelease [256 kB]
Get:2 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB]
Get:3 http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages [428 kB]
Get:4 http://archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
Get:5 http://archive.ubuntu.com/ubuntu noble-backports InRelease [126 kB]
Get:6 http://security.ubuntu.com/ubuntu noble-security/main Translation-en [92.5 kB]
Get:7 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages [1401 kB]
Get:8 http://security.ubuntu.com/ubuntu noble-security/main amd64 Components [6876 B]
Get:9 http://security.ubuntu.com/ubuntu noble-security/main amd64 c-n-f Metadata [5788 B]
Get:10 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Packages [385 kB]
Get:11 http://security.ubuntu.com/ubuntu noble-security/restricted Translation-en [74.4 kB]
Get:12 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Components [212 B]
Get:13 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 c-n-f Metadata [428 B]
Get:14 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Packages [553 kB]
Get:15 http://security.ubuntu.com/ubuntu noble-security/universe Translation-en [147 kB]
Get:16 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Components [8632 B]
Get:17 http://security.ubuntu.com/ubuntu noble-security/universe amd64 c-n-f Metadata [13.5 kB]
Get:18 http://security.ubuntu.com/ubuntu noble-security/multiverse amd64 Packages [10.9 kB]
Get:19 http://security.ubuntu.com/ubuntu noble-security/multiverse Translation-en [2808 B]
Get:20 http://security.ubuntu.com/ubuntu noble-security/multiverse amd64 Components [208 B]
Get:21 http://security.ubuntu.com/ubuntu noble-security/multiverse amd64 c-n-f Metadata [344 B]
Get:22 http://archive.ubuntu.com/ubuntu noble/main Translation-en [513 kB]
Get:23 http://archive.ubuntu.com/ubuntu noble/main amd64 Components [464 kB]
Get:24 http://archive.ubuntu.com/ubuntu noble/main amd64 c-n-f Metadata [30.5 kB]
Get:25 http://archive.ubuntu.com/ubuntu noble/restricted amd64 Packages [93.9 kB]
Get:26 http://archive.ubuntu.com/ubuntu noble/restricted Translation-en [18.7 kB]
Get:27 http://archive.ubuntu.com/ubuntu noble/restricted amd64 c-n-f Metadata [416 B]
Get:28 http://archive.ubuntu.com/ubuntu noble/universe amd64 Packages [15.0 MB]
Get:29 http://archive.ubuntu.com/ubuntu noble/universe Translation-en [5982 kB]
Get:30 http://archive.ubuntu.com/ubuntu noble/universe amd64 Components [3871 kB]
Get:31 http://archive.ubuntu.com/ubuntu noble/universe amd64 c-n-f Metadata [301 kB]
Get:32 http://archive.ubuntu.com/ubuntu noble/multiverse amd64 Packages [269 kB]
Get:33 http://archive.ubuntu.com/ubuntu noble/multiverse Translation-en [118 kB]
Get:34 http://archive.ubuntu.com/ubuntu noble/multiverse amd64 Components [35.0 kB]
Get:35 http://archive.ubuntu.com/ubuntu noble/multiverse amd64 c-n-f Metadata [8328 B]
Get:36 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [597 kB]
Get:37 http://archive.ubuntu.com/ubuntu noble-updates/main Translation-en [146 kB]
Get:38 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Components [8564 B]
Get:39 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 c-n-f Metadata [10.3 kB]
Get:40 http://archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Packages [388 kB]
Get:41 http://archive.ubuntu.com/ubuntu noble-updates/restricted Translation-en [74.8 kB]
Get:42 http://archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Components [212 B]
Get:43 http://archive.ubuntu.com/ubuntu noble-updates/restricted amd64 c-n-f Metadata [424 B]
Get:44 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [706 kB]
Get:45 http://archive.ubuntu.com/ubuntu noble-updates/universe Translation-en [209 kB]
Get:46 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 Components [45.0 kB]
Get:47 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 c-n-f Metadata [19.8 kB]
Get:48 http://archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 Packages [14.8 kB]
Get:49 http://archive.ubuntu.com/ubuntu noble-updates/multiverse Translation-en [3820 B]
Get:50 http://archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 Components [212 B]
Get:51 http://archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 c-n-f Metadata [552 B]
Get:52 http://archive.ubuntu.com/ubuntu noble-backports/main amd64 Components [208 B]
Get:53 http://archive.ubuntu.com/ubuntu noble-backports/main amd64 c-n-f Metadata [112 B]
Get:54 http://archive.ubuntu.com/ubuntu noble-backports/restricted amd64 Components [216 B]
Get:55 http://archive.ubuntu.com/ubuntu noble-backports/restricted amd64 c-n-f Metadata [116 B]
Get:56 http://archive.ubuntu.com/ubuntu noble-backports/universe amd64 Packages [10.6 kB]
Get:57 http://archive.ubuntu.com/ubuntu noble-backports/universe Translation-en [10.8 kB]
Get:58 http://archive.ubuntu.com/ubuntu noble-backports/universe amd64 Components [17.6 kB]
Get:59 http://archive.ubuntu.com/ubuntu noble-backports/universe amd64 c-n-f Metadata [1104 B]
Get:60 http://archive.ubuntu.com/ubuntu noble-backports/multiverse amd64 Components [212 B]
Get:61 http://archive.ubuntu.com/ubuntu noble-backports/multiverse amd64 c-n-f Metadata [116 B]
Fetched 32.8 MB in 8s (3966 kB/s)
WARNING:root:cannot read /var/lib/command-not-found/commands.db.metadata: 'utf-8' codec can't decode byte 0xc7 in position 5: invalid continuation byte
Reading package lists... Done


Desde já agradeço pelo apoio.







Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts