Not able to install any packeges on ubuntu

ubuntu@ip-172-30-0-170:~$ sudo apt-get install tree
Reading package lists… Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/repo.mongodb.org_apt_ubuntu_dists_xenial_mongodb-org_4.0_multiverse_binary-arm64_Packages
E: The package lists or status file could not be parsed or opened.

Shall i remove /var/lib/apt/lists this directory. in a future facing issues

Yes. It may be removed and regenerated with apt update.

1 Like