Installed manjaro on top of my existing manjaro partition now I am getting problems

So I had to do this because I couldn’t figure out how to restore grub bootloader after reinstalling windows. No matter how much I followed the instructions on how to restore grub, it just wont work for me. So I decided to just dirty install the whole os again with their respective partitions based on the instruction. It did work and finally able to see grub and boot to manjaro. But the problem is, whenever I try to download something from octopi or just do system updates. I get these duplicate errors:

error: duplicated database entry ‘libcdr’
error: duplicated database entry ‘imagemagick’
error: duplicated database entry ‘libplacebo’
error: duplicated database entry ‘sddm-kcm’
error: duplicated database entry ‘kdecoration’
error: duplicated database entry ‘bashrc-manjaro’
error: duplicated database entry ‘pango’
error: duplicated database entry ‘spectacle’
error: duplicated database entry ‘kwayland-integration’
error: duplicated database entry ‘iproute2’
error: duplicated database entry ‘libsodium’
error: duplicated database entry ‘libkipi’
error: duplicated database entry ‘vulkan-icd-loader’
error: duplicated database entry ‘kdenetwork-filesharing’
error: duplicated database entry ‘libkexiv2’
error: duplicated database entry ‘lib32-systemd’
error: duplicated database entry ‘linux419’
error: duplicated database entry ‘plasma-workspace-wallpapers’
error: duplicated database entry ‘kwallet-pam’
error: duplicated database entry ‘iana-etc’
error: duplicated database entry ‘libxslt’
error: duplicated database entry ‘libqxp’
error: duplicated database entry ‘libksysguard’
error: duplicated database entry ‘cpupower’
error: duplicated database entry ‘libdmtx’
error: duplicated database entry ‘filelight’
error: duplicated database entry ‘perl-uri’
error: duplicated database entry ‘python-msgpack’
error: duplicated database entry ‘pacman’
error: duplicated database entry ‘systemd-sysvcompat’
error: duplicated database entry ‘libcmis’
error: duplicated database entry ‘shadow’
error: duplicated database entry ‘gzip’
error: duplicated database entry ‘libwpg’
error: duplicated database entry ‘python-lockfile’
error: duplicated database entry ‘kio-extras’
error: duplicated database entry ‘kwalletmanager’
error: duplicated database entry ‘polkit-kde-agent’
error: duplicated database entry ‘ruby’
error: duplicated database entry ‘kcalc’
error: duplicated database entry ‘tar’
error: duplicated database entry ‘subversion’
error: duplicated database entry ‘powerdevil’
error: duplicated database entry ‘plasma-workspace’
error: duplicated database entry ‘libqmi’
error: duplicated database entry ‘fuse2’
error: duplicated database entry ‘libsecret’
error: duplicated database entry ‘rubygems’
error: duplicated database entry ‘libwpd’
error: duplicated database entry ‘diffutils’
error: duplicated database entry ‘kate’
error: duplicated database entry ‘tzdata’
error: duplicated database entry ‘fuse-common’
error: duplicated database entry ‘kamera’
error: duplicated database entry ‘python-requests’
error: duplicated database entry ‘kdegraphics-thumbnailers’
error: duplicated database entry ‘vlc’
error: duplicated database entry ‘knetattach’
error: duplicated database entry ‘util-linux’
error: duplicated database entry ‘breeze’
error: duplicated database entry ‘hplip’
error: duplicated database entry ‘fuse3’
error: duplicated database entry ‘libutil-linux’
error: duplicated database entry ‘systemsettings’
error: duplicated database entry ‘grantlee’
error: duplicated database entry ‘harfbuzz-icu’
error: duplicated database entry ‘libsystemd’
error: duplicated database entry ‘man-db’
error: duplicated database entry ‘wpa_supplicant’
error: duplicated database entry ‘libetonyek’
error: duplicated database entry ‘libkscreen’
error: duplicated database entry ‘kde-cli-tools’
error: duplicated database entry ‘libmbim’
error: duplicated database entry ‘user-manager’
error: duplicated database entry ‘powertop’
error: duplicated database entry ‘keditbookmarks’
error: duplicated database entry ‘harfbuzz’
error: duplicated database entry ‘geoclue2’
error: duplicated database entry ‘systemd’
error: duplicated database entry ‘kde-gtk-config’
error: duplicated database entry ‘kmenuedit’
error: duplicated database entry ‘plasma-integration’
error: duplicated database entry ‘khotkeys’
error: duplicated database entry ‘plasma-pa’
error: duplicated database entry ‘kaccounts-providers’
error: duplicated database entry ‘libinput’
error: duplicated database entry ‘ksystemlog’
error: duplicated database entry ‘wget’
error: duplicated database entry ‘konsole’
error: duplicated database entry ‘python’
error: duplicated database entry ‘libmagick’

I have no idea what to do. Searching this up yielded some result, but I have no idea how to do any of them. I did some of them like inputting some commands but it never worked for me. If anyone can help me better, I’d really appreciate it. Is there still a way to save my OS? Because It took me days of learning to install the tweaks I wanted and doing them again is going to be time consuming.

There may be a more elegant method, but try this

sudo pacman -Sc

If same errors, go to /var/lib/pacman/local
remove the older directory of ‘pacman’
Try again ‘sudo pacman -Sc’ or ‘sudo pacman -Scc’
If there are still errors,
Then go again to /var/lib/pacman/local
And remove all older versions of packages.

Oh, next time windows remove your manjaro boot,
just do the [Simple First Start] here.

3 Likes

Thank, unfortunately it did not work. when I still something from octopi, the error duplicate messages still appear. when you mean going to /var/lib/pacman/local, do I actually delete the exact file in the error?

is there a command where I can automate this?

Yes! That’s what I said.

I was asking you to with the earlier messages.
Apparently, there is none.

So go and delete the ‘exact’ files then.
Careful you remove the older versions of packages.
If there is no older packages, just a single version, do not delete that file.

3 Likes

Thanks man. I finally got it solved. Just did what you told me to do and deleted all the old versions.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.