Cannot install Megasync

Hello guys sorry if i’ve been a nuisanc to you thinking ah this guy again but i am coming around a lot of problems lately while using EOS

I am trying to install Mega in my desktop i went to their website and downloaded the package and after that wrote the command on terminal line but it showed me some kind of error

[megumi@AkiMegumi ~]$ sudo pacman -U https://mega.io/linux/repo/Arch_Extra/x86_64/megasync-4.6.5-2-x86_64.pkg.tar.zst
:: Retrieving packages…
megasync-4.6.5-2-x86_64.pkg.tar.zst failed to download
error: failed retrieving file ‘megasync-4.6.5-2-x86_64.pkg.tar.zst’ from mega.io : The requested URL returned error: 404
warning: failed to retrieve some files

After this i even tried
[megumi@AkiMegumi ~]$ yay -S megasync
→ Could not find all required packages:
libpdfium (Wanted by: megasync)

What should i do? I really need Megasync

Thanks in advance

It looks like the link you are using is old. Try this:

sudo pacman -U https://mega.io/linux/repo/Arch_Extra/x86_64/megasync-4.6.8-2-x86_64.pkg.tar.zst

Showing error while importing pgp key

[megumi@AkiMegumi ~]$ sudo pacman -U https://mega.io/linux/repo/Arch_Extra/x86_64/megasync-4.6.8-2-x86_64.pkg.tar.zst
[sudo] password for megumi:
:: Retrieving packages…
megasync-4.6.8-2-x86_64 20.8 MiB 3.20 MiB/s 00:06 [--------------------------------] 100%
loading packages…
:: Import PGP key 1A664B787094A482, “Unknown Packager”? [Y/n] y
error: ‘/var/cache/pacman/pkg/megasync-4.6.8-2-x86_64.pkg.tar.zst’: invalid or corrupted package (PGP signature)

Follow this guide on how to fix that:

Alternatively, if you download the file and then install it you might not receive that error.

[megumi@AkiMegumi ~]$ sudo pacman -U https://mega.io/linux/repo/Arch_Extra/x86_64/megasync-4.6.8-2-x86_64.pkg.tar.zst
[sudo] password for megumi:
loading packages…
error: ‘/var/cache/pacman/pkg/megasync-4.6.8-2-x86_64.pkg.tar.zst’: invalid or corrupted package (PGP signature)

Well, that is the exact same thing you did above so you received the same error…

Why dont you just install the megasync package from the AUR?

megasync 4.6.7.0-1

And, by the way, I downloaded https://mega.io/linux/repo/Arch_Extra/x86_64/megasync-4.6.8-2-x86_64.pkg.tar.zst
and installed it without any issue.

2 Likes

[megumi@AkiMegumi ~]$ sudo pacman -Sy archlinux-keyring endeavouros-keyring
[sudo] password for megumi:
:: Synchronizing package databases…
endeavouros is up to date
core is up to date
extra is up to date
community is up to date
multilib is up to date
warning: archlinux-keyring-20220927-1 is up to date – reinstalling
warning: endeavouros-keyring-20220614-1 is up to date – reinstalling
resolving dependencies…
looking for conflicting packages…

Package (2) Old Version New Version Net Change Download Size

core/archlinux-keyring 20220927-1 20220927-1 0.00 MiB 1.11 MiB
endeavouros/endeavouros-keyring 20220614-1 20220614-1 0.00 MiB 0.02 MiB

Total Download Size: 1.13 MiB
Total Installed Size: 1.58 MiB
Net Upgrade Size: 0.00 MiB

:: Proceed with installation? [Y/n] n
[megumi@AkiMegumi ~]$ sudo pacman -Syu
:: Synchronizing package databases…
endeavouros is up to date
core is up to date
extra is up to date
community is up to date
multilib is up to date
:: Starting full system upgrade…
resolving dependencies…
looking for conflicting packages…

Package (1) Old Version New Version Net Change Download Size

extra/noto-fonts 20220607-1 20220810-1 -0.02 MiB 25.97 MiB

Total Download Size: 25.97 MiB
Total Installed Size: 109.68 MiB
Net Upgrade Size: -0.02 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages…
noto-fonts-20220810-1-any 26.0 MiB 8.88 MiB/s 00:03 [--------------------------------] 100%
(1/1) checking keys in keyring [--------------------------------] 100%
(1/1) checking package integrity [--------------------------------] 100%
error: noto-fonts: signature from “Antonio Rojas arojas@archlinux.org” is unknown trust
:: File /var/cache/pacman/pkg/noto-fonts-20220810-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded

I did what was said in the link and well

Try this:

wget https://mega.io/linux/repo/Arch_Extra/x86_64/megasync-4.6.8-2-x86_64.pkg.tar.zst
sudo pacman -U megasync-4.6.8-2-x86_64.pkg.tar.zst

i think there is some problem with the package

[megumi@AkiMegumi ~]$ wget https://mega.io/linux/repo/Arch_Extra/x86_64/megasync-4.6.8-2-x86_64.pkg.tar.zst
–2022-09-30 22:59:53-- https://mega.io/linux/repo/Arch_Extra/x86_64/megasync-4.6.8-2-x86_64.pkg.tar.zst
Loaded CA certificate ‘/etc/ssl/certs/ca-certificates.crt’
Resolving mega.io (mega.io)… 31.216.144.6, 31.216.145.6, 2a0b:e46:1:144::6, …
Connecting to mega.io (mega.io)|31.216.144.6|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 21759484 (21M) [application/zstd]
Saving to: ‘megasync-4.6.8-2-x86_64.pkg.tar.zst.1’

megasync-4.6.8-2-x86_64. 100%[==================================>] 20.75M 5.35MB/s in 5.8s

2022-09-30 23:00:01 (3.55 MB/s) - ‘megasync-4.6.8-2-x86_64.pkg.tar.zst.1’ saved [21759484/21759484]

[megumi@AkiMegumi ~]$ sudo pacman -U megasync-4.6.8-2-x86_64.pkg.tar.zst
[sudo] password for megumi:
loading packages…
resolving dependencies…
looking for conflicting packages…

Package (8) New Version Net Change Download Size

extra/freeglut 3.2.2-2 0.39 MiB 0.10 MiB
extra/glu 9.0.2-3 0.35 MiB 0.14 MiB
extra/jasper 3.0.6-1 0.64 MiB 0.20 MiB
extra/libraw 0.20.2-2 2.52 MiB 0.41 MiB
extra/qt5-svg 5.15.6+kde+r9-1 0.49 MiB 0.15 MiB
extra/qt5-tools 5.15.6+kde+r1-1 15.56 MiB 5.33 MiB
extra/qt5-x11extras 5.15.6+kde+r0-1 0.04 MiB 0.01 MiB
megasync 4.6.8-2 48.56 MiB

Total Download Size: 6.34 MiB
Total Installed Size: 68.55 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages…
jasper-3.0.6-1-x86_64 200.2 KiB 205 KiB/s 00:01 [--------------------------------] 100%
glu-9.0.2-3-x86_64 142.8 KiB 135 KiB/s 00:01 [--------------------------------] 100%
libraw-0.20.2-2-x86_64 420.4 KiB 328 KiB/s 00:01 [--------------------------------] 100%
qt5-svg-5.15.6+kde+r9-1-x86_64 149.1 KiB 91.5 KiB/s 00:02 [--------------------------------] 100%
qt5-x11extras-5.15.6+kde+r… 14.7 KiB 23.5 KiB/s 00:01 [--------------------------------] 100%
freeglut-3.2.2-2-x86_64 105.7 KiB 79.0 KiB/s 00:01 [--------------------------------] 100%
qt5-tools-5.15.6+kde+r1-1-… 5.3 MiB 303 KiB/s 00:18 [--------------------------------] 100%
Total (7/7) 6.3 MiB 355 KiB/s 00:18 [--------------------------------] 100%
(8/8) checking keys in keyring [--------------------------------] 100%
(7/8) checking package integrity [--------------------------------] 100%
error: qt5-tools: signature from “Antonio Rojas arojas@archlinux.org” is unknown trust
:: File /var/cache/pacman/pkg/qt5-tools-5.15.6+kde+r1-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: qt5-svg: signature from “Antonio Rojas arojas@archlinux.org” is unknown trust
:: File /var/cache/pacman/pkg/qt5-svg-5.15.6+kde+r9-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: qt5-x11extras: signature from “Antonio Rojas arojas@archlinux.org” is unknown trust
:: File /var/cache/pacman/pkg/qt5-x11extras-5.15.6+kde+r0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: freeglut: signature from “Jan Alexander Steffens (heftig) heftig@archlinux.org” is unknown trust
:: File /var/cache/pacman/pkg/freeglut-3.2.2-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: glu: signature from “Jan Alexander Steffens (heftig) heftig@archlinux.org” is unknown trust
:: File /var/cache/pacman/pkg/glu-9.0.2-3-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: jasper: signature from “Antonio Rojas arojas@archlinux.org” is unknown trust
:: File /var/cache/pacman/pkg/jasper-3.0.6-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: libraw: signature from “Antonio Rojas arojas@archlinux.org” is unknown trust
:: File /var/cache/pacman/pkg/libraw-0.20.2-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.

Try this:

sudo pacman -Sy archlinux-keyring
sudo pacman -U megasync-4.6.8-2-x86_64.pkg.tar.zst

error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.

As I said: I downloaded exactly from the link you gave and the package installs just fine for me.

but the same is not happening for me tho can i tried git install , yay install , sudo install every single one of them gives me the same error and now i am tired

You have a different problem. Your pacman output shows several errors which have nothing nto do with megasync. In fact I do not see any error related to megasync but only for the dependencies like libraw etc.

All errors, including those saying “invalid or corrupted package” are related to signature issues. You have an issue with the keyring and the signatures.

can you tell me what can i do to resolve this

you say no to this why?
press y and enter

when it is ready
then you can
pacman - Syyu
now you cam install megasync

3 Likes

:point_up:

look in my post
know well sudo pacman -Syu archlinux-keyring will solve this problem
using arch myself for several years now
but if you look, he presses n instead of y

1 Like

Yes you pointed that one out well.

I wasn’t intending to criticise what you posted. Just tried to make it more visible for the OP.

So, again:

sudo pacman -Sy archlinux-keyring endeavouros-keyring

…and answer with YES instead of NO.