fosskers / aura

A multilingual package manager for Arch Linux and the AUR.
https://fosskers.github.io/aura/
GNU General Public License v3.0
1.77k stars 114 forks source link

Aura conflicts with pacman and can't see already installed packages #783

Closed reggermont closed 5 months ago

reggermont commented 2 years ago

Recently, I found out aura -Ayu doesn't update my packages anymore. It exits after the Fetching package information... step and provide no informations, not even debug logs :

> sudo aura -A --sysupgrade --log-level debug
AuraConfig {acLang = Nothing, acEditor = Nothing, acUser = Nothing, acBuildPath = Nothing, acASPath = Nothing, acVCSPath = Nothing, acAnalyse = Nothing}
2022-09-13 11:13:29.541159: [debug] Interpreting CLI options.
@(exec/aura.hs:90:3)
2022-09-13 11:13:29.541346: [debug] Right (AurSync (Left (AurUpgrade (fromList []))) (fromList []))
@(exec/aura.hs:94:5)
2022-09-13 11:13:29.541395: [debug] BuildConfig {makepkgFlagsOf = fromList [], buildPathOf = Nothing, buildUserOf = Just (User {user = "reggermont"}), allsourcePathOf = Nothing, vcsPathOf = Nothing, truncationOf = None, buildSwitchesOf = fromList []}
@(exec/aura.hs:95:5)
2022-09-13 11:13:29.541448: [debug] CommonConfig {cachePathOf = Left "/var/cache/pacman/pkg/", configPathOf = Left "/etc/pacman.conf", logPathOf = Left "/var/log/pacman.log", commonSwitchesOf = fromList []}
@(exec/aura.hs:96:5)
aura >>= Fetching package information...

So I tried to force an update of aura by running aura -Ay aura-bin, and aura want to install git and pacman:

:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
aura >>= Determining dependencies...

aura >>= Repository dependencies:
git
pacman
aura >>= AUR Packages:
aura-bin
aura >>= Continue? [Y/n] 

ofc they are already installed, so if I answer Y, aura tries to install them but find already-existing files

aura >>= Continue? [Y/n] Y
resolving dependencies...
looking for conflicting packages...

Packages (19) gawk-5.2.0-3  gnupg-2.2.39-1  gpgme-1.18.0-1  grep-3.8-2  libarchive-3.6.1-2  libassuan-2.5.5-1
              libksba-1.6.0-1  libsecret-0.20.5-2  mpfr-4.1.0.p13-3  npth-1.6-3  pacman-mirrorlist-20220828-1
              perl-error-0.17029-4  perl-mailtools-2.21-6  perl-timedate-2.33-4  pinentry-1.2.0-1  sqlite-3.39.3-1
              tpm2-tss-3.2.0-1  git-2.37.3-1  pacman-6.0.1-7

Total Installed Size:  67.97 MiB

:: Proceed with installation? [Y/n] Y
[...]
git: /usr/share/perl5/vendor_perl/Git/SVN/GlobSpec.pm exists in filesystem
git: /usr/share/perl5/vendor_perl/Git/SVN/Log.pm exists in filesystem
git: /usr/share/perl5/vendor_perl/Git/SVN/Memoize/YAML.pm exists in filesystem
git: /usr/share/perl5/vendor_perl/Git/SVN/Migration.pm exists in filesystem
git: /usr/share/perl5/vendor_perl/Git/SVN/Prompt.pm exists in filesystem
git: /usr/share/perl5/vendor_perl/Git/SVN/Ra.pm exists in filesystem
git: /usr/share/perl5/vendor_perl/Git/SVN/Utils.pm exists in filesystem
Errors occurred, no packages were upgraded.

Tried to build aura from source and install it again, but the issue stays the same.

fosskers commented 2 years ago

Thanks for the report. I'll be making an initial release of the Aura 4 rewrite very soon. That should fix your issues.

reggermont commented 2 years ago

Thanks for the answer, looking forward to test that :smile:

fosskers commented 2 years ago

Give it a shot!

cargo install aura-pm --version 4.0.0-alpha3
ghost commented 2 years ago

Someone need to make a PKGBUILD for aura-rust

fosskers commented 2 years ago

Yup! This is definitely my responsibility. I was out of town this weekend and this week coming up is also busy, but I'll do my best

fosskers commented 5 months ago

Thanks again for the report. The Aura 4 release is soon, and so I'm going back through older issues. I'm going to close this, but please let me know if you have any other issues. Cheers.