Problem: Repository 'MEGAsync' is invalid

Whenever i do

sudo zypper ref

i get this error

Retrieving repository ‘MEGAsync’ metadata …[error]Repository ‘MEGAsync’ is invalid.
[MEGAsync|http://mega.nz/linux/MEGAsync/openSUSE_Leap_42.1/] Valid metadata not found at specified URL
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository ‘MEGAsync’ because of the above error.

sudo zypper -vvv ref

Checking whether to refresh metadata for MEGAsync
Retrieving: http://mega.nz/linux/MEGAsync/openSUSE_Leap_42.1/repodata/repomd.xml …[done]
Retrieving: http://mega.nz/linux/MEGAsync/openSUSE_Leap_42.1/repodata/repomd.xml …[done]
Retrieving: http://mega.nz/linux/MEGAsync/openSUSE_Leap_42.1/repodata/repomd.xml.asc …[done]
Retrieving: http://mega.nz/linux/MEGAsync/openSUSE_Leap_42.1/repodata/repomd.xml.key …[done]
Retrieving repository ‘MEGAsync’ metadata …[error]
Repository ‘MEGAsync’ is invalid.
[MEGAsync|http://mega.nz/linux/MEGAsync/openSUSE_Leap_42.1/] Valid metadata not found at specified URL
History:

  • File /var/tmp/TmpFile.IiyI09 doesn’t contain public key data

Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository ‘MEGAsync’ because of the above error.

Already tried “zypper clean”/“zpper -v clean”/“zypperclean --all”/ “rpmdb–rebuilddb” ,cleaning /var/tmp and restarting system, nothing seems to work. I don’t know why only i get this Error when other users seems to have it working fine in Leap.

  • File /var/tmp/TmpFile.IiyI09 doesn’t contain public key data

There’s nothing you can do about the above error, it’s the fault of the people who set up the repo.
But you have a couple of options…

First, delete your non-working Megasync repo

zypper rm MEGAsyn

Then,
Option 1 - Install the repo without doing the security check

zypper ar -f -G http://mega.nz/linux/MEGAsync/openSUSE_Leap_42.1/ MEGAsync

Option 2 Install just the packages without installing the repo
The repo is tiny, in fact it looks like you only need one package and an optional second package if you want Gnome Nautilus integration.

Run the following from a root console

zypper in https://mega.nz/linux/MEGAsync/openSUSE_Leap_42.1/x86_64/megasync-2.9.5-1.1.x86_64.rpm

And, if you want the Nautilus integration

zypper in https://mega.nz/linux/MEGAsync/openSUSE_Leap_42.1/x86_64/nautilus-megasync-2.9.5-1.1.x86_64.rpm

TSU

So any idea why only i get that error ? I have asked others over IRC using Leap to check and they said its running fine without errors and when i contacted the Mega developers they also said its running fine when they checked it for Leap in a VM.

Post:

zypper lr -uP

Here

#  | Alias                               | Name                                          | Enabled | GPG Check | Refresh | Priority | URI                                                                                                              ---+-------------------------------------+-----------------------------------------------+---------+-----------+---------+----------+------------------------------------------------------------------------------------------------------------------
 1 | DNS                                 | DNS                                           | Yes     | (r ) Yes  | Yes     |   99     | http://download.opensuse.org/repositories/server:/dns/openSUSE_42.1/                                             
 2 | KDE_Unstable_Applications           | KUA                                           | Yes     | (r ) Yes  | No      |   75     | http://download.opensuse.org/repositories/KDE:/Unstable:/Applications/KDE_Unstable_Frameworks_openSUSE_Leap_42.1/
 3 | KDE_Unstable_Extra                  | KUE                                           | Yes     | (r ) Yes  | No      |   75     | http://download.opensuse.org/repositories/KDE:/Unstable:/Extra/KDE_Unstable_Extra_openSUSE_Leap_42.1/            
 4 | KDE_Unstable_Frameworks             | KUF                                           | Yes     | (r ) Yes  | No      |   75     | http://download.opensuse.org/repositories/KDE:/Unstable:/Frameworks/openSUSE_Leap_42.1                           
 5 | MEGAsync                            | MEGAsync                                      | Yes     | (r ) Yes  | Yes     |   99     | http://mega.nz/linux/MEGAsync/openSUSE_Leap_42.1/                                                                
 6 | QT_5.6                              | QT56                                          | Yes     | (r ) Yes  | No      |   50     | http://download.opensuse.org/repositories/KDE:/Qt56/openSUSE_Leap_42.1/                                          
 7 | Ruby                                | Ruby                                          | No      | ----      | No      |   99     | http://download.opensuse.org/repositories/devel:/languages:/ruby/openSUSE_Leap_42.1/                             
 8 | devel_languages_ruby_extensions     | Ruby Extensions (openSUSE_Leap_42.1)          | No      | ----      | No      |   99     | http://download.opensuse.org/repositories/devel:/languages:/ruby:/extensions/openSUSE_Leap_42.1/                 
 9 | download.nvidia.com-leap            | nVidia Graphics Drivers                       | No      | ----      | Yes     |   10     | http://download.nvidia.com/opensuse/leap/42.1                                                                    
10 | google-chrome-unstable              | google-chrome-unstable                        | Yes     | (r ) Yes  | Yes     |   99     | http://dl.google.com/linux/chrome/rpm/stable/x86_64                                                              
11 | home_Horst3180                      | Horst3180's Home Project (openSUSE_Leap_42.1) | Yes     | (r ) Yes  | No      |   99     | http://download.opensuse.org/repositories/home:/Horst3180/openSUSE_Leap_42.1/                                    
12 | http-download.opensuse.org-0555e3ed | network:utilities                             | Yes     | (r ) Yes  | Yes     |   99     | http://download.opensuse.org/repositories/network:/utilities/openSUSE_Leap_42.1/                                 
13 | http-download.opensuse.org-1d88065d | home:ecsos:tox                                | Yes     | (r ) Yes  | No      |   99     | http://download.opensuse.org/repositories/home:/ecsos:/tox/openSUSE_Leap_42.1/                                   
14 | http-download.opensuse.org-1f5ce167 | server:monitoring                             | Yes     | (r ) Yes  | No      |   99     | http://download.opensuse.org/repositories/server:/monitoring/openSUSE_Leap_42.1/                                 
15 | http-download.opensuse.org-32fc9fe0 | X11:Cinnamon:Current                          | Yes     | (r ) Yes  | No      |   99     | http://download.opensuse.org/repositories/X11:/Cinnamon:/Current/openSUSE_Leap_42.1/                             
16 | http-download.opensuse.org-3d0fcfe9 | network:telephony                             | Yes     | (r ) Yes  | No      |   99     | http://download.opensuse.org/repositories/network:/telephony/openSUSE_Leap_42.1/                                 
17 | http-download.opensuse.org-5f5ff7a8 | X11:windowmanagers                            | No      | ----      | No      |   99     | http://download.opensuse.org/repositories/X11:/windowmanagers/openSUSE_Leap_42.1/                                
18 | http-download.opensuse.org-7dcfc407 | home:jgeboski                                 | Yes     | (r ) Yes  | Yes     |   99     | http://download.opensuse.org/repositories/home:/jgeboski/openSUSE_Leap_42.1/                                     
19 | http-download.opensuse.org-8e36f848 | GNOME:Apps                                    | Yes     | (r ) Yes  | No      |   99     | http://download.opensuse.org/repositories/GNOME:/Apps/openSUSE_Leap_42.1/                                        
20 | http-download.opensuse.org-e78d11a3 | X11:xfce                                      | Yes     | (r ) Yes  | No      |   99     | http://download.opensuse.org/repositories/X11:/xfce/openSUSE_Leap_42.1/                                          
21 | opera                               | Opera packages                                | Yes     | (r ) Yes  | Yes     |   99     | https://rpm.opera.com/rpm                                                                                        
22 | packman.inode.at-suse               | Packman                                       | Yes     | (r ) Yes  | Yes     |   20     | http://ftp.fau.de/packman/suse/openSUSE_Leap_42.1/                                                               
23 | repo-non-oss                        | openSUSE-Leap-42.1-Non-Oss                    | Yes     | (r ) Yes  | Yes     |   90     | http://download.opensuse.org/distribution/leap/42.1/repo/non-oss/                                                
24 | repo-oss                            | openSUSE-Leap-42.1-Oss                        | Yes     | (r ) Yes  | Yes     |   90     | http://download.opensuse.org/distribution/leap/42.1/repo/oss/                                                    
25 | repo-update                         | openSUSE-Leap-42.1-Update                     | Yes     | (r ) Yes  | Yes     |   90     | http://download.opensuse.org/update/leap/42.1/oss/                                                               
26 | repo-update-non-oss                 | openSUSE-Leap-42.1-Update-Non-Oss             | Yes     | (r ) Yes  | Yes     |   90     | http://download.opensuse.org/update/leap/42.1/non-oss/                                                            27 | virtualbox                          | virtualbox                                    | Yes     | (r ) Yes  | Yes     |  100     | http://download.virtualbox.org/virtualbox/rpm/opensuse/42.1/                                                     

To be honest: that’s a mess. It shouldn’t be the culprit re. the megasync repo, but it can be re. installing the package.

why do you call it a mess ?

Because you’ve added a lot of repos that contain untested software. F.e. the KDE:/* repos.

Because i wanted to try Argon and those are the KDE repositories used for Argon. I don’t know what it has got to do with the mega client.

A FYI
When running Argon (and other bleeding edge versions of LEAP),
You’re not running a standard version of your distro and a bleeding edge version is actually <likely> to have unresolved bugs, and this might be one of them. Could be that Argon is trying the very latest and maybe proposed versions of repos and the test code may not contain backwards compatible code to support older versions.

TSU

Only the Desktop Environment which is KDE is bleeding edge from Argon repos, the core system is Leap and still as stable as Leap. And i also have other stable DEs installed along side

sudo zypper ar -f -n Megasync http://mega.nz/linux/MEGAsync/openSUSE_Leap_42.1/ Megasync
[sudo] wachtwoord voor root:  
Bron 'Megasync' toevoegen ...........................................................................................................................[gereed]
Installatiebron 'Megasync' is met succes toegevoegd:
Ingeschakeld   : Ja                                                
Autovernieuwen : Ja                                                
GPG-controle   : Ja                                                
Prioriteit     : 99                                                
URI            : http://mega.nz/linux/MEGAsync/openSUSE_Leap_42.1/

glosscomputer@knurpht:~> sudo zypper ref
Installatiebron 'Chrome' is actueel.                                                                                                                          
Installatiebron 'KDExtra' is actueel.                                                                                                                         
Installatiebron 'Knurpht' is actueel.                                                                                                                         
Ophalen van metadata uit installatiebron 'Megasync' ------------------------------------------------------------------------------------------------------|]

**Een nieuwe handtekening voor een installatiebron of pakket is ontvangen:**

  Installatiebron:           Megasync                                     
  Sleutelnaam:               MegaLimited <support@mega.co.nz>             
  Vingerafdruk van sleutel:  8F208FBF 12FEE766 AA32AEAF 03C3AD3A 7F068E5D
  Sleutel aangemaakt:        za 07 nov 2015 10:12:33 CET                  
  Sleutel verloopt op:       di 04 nov 2025 10:12:33 CET                  
  Rpm-naam:                  gpg-pubkey-7f068e5d-563dc081                 


Wilt u de sleutel verwerpen, tijdelijk vertrouwen of altijd vertrouwen? **[v/t/a/? alle opties tonen] (v): **t                                                    
Ophalen van metadata uit installatiebron 'Megasync' .................................................................................................[gereed]
Cache van bron 'Megasync' bouwen ....................................................................................................................[gereed]
Installatiebron 'NVIDIA' is actueel.                                                                                                                          
Installatiebron 'Packman' is actueel.                                                                                                                         
Installatiebron 'TWoss' is actueel.                                                                                                                           
Installatiebron 'TWnonoss' is actueel.                                                                                                                        
Installatiebron 'TWup' is actueel.                                                                                                                            
Alle installatiebronnen zijn vernieuwd.

It’s in dutch, but as you can see it works fine adding the repo to my Tumbleweed install ( and removing it immediately afterwards ). Same on my Leap install.

Post:

ls -al /var/tmp/

ls -al /var/tmp/
total 52
drwxrwxrwt 13 root root 4096 Jul 5 21:59 .
drwxr-xr-x 14 root root 4096 Jun 30 20:32 …
drwx------ 2 kdm kdm 4096 Jul 2 13:20 kdecache-kdm
drwx------ 3 username users 4096 Jul 3 18:00 kdecache-username
drwx------ 3 root root 4096 Jul 2 13:20 systemd-private-2d508963e18f4be5b540a6fa972c9bbd-ntpd.service-qvvON7
drwx------ 3 root root 4096 Jul 2 13:21 systemd-private-2d508963e18f4be5b540a6fa972c9bbd-rtkit-daemon.service-agXc2n
drwx------ 2 root root 4096 Jul 2 13:26 TmpDir.aQDxRO
drwx------ 2 root root 4096 Jul 3 13:27 TmpDir.FhsXM0
drwx------ 2 root root 4096 Jul 5 13:28 TmpDir.QCrXff
drwx------ 4 root root 4096 Jul 5 13:28 zypp.CtjjON
drwx------ 4 root root 4096 Jul 4 13:27 zypp.FSSmFT
drwx------ 4 root root 4096 Jul 2 13:26 zypp.fWVHOh
drwx------ 4 root root 4096 Jul 3 13:27 zypp.TbBuNH

I contacted Mega related this issue and exchanged few emails sending the information they asked for and this was final advise they gave me, looks like even they are not sure where the problem is:

Dear MEGA user,

Our developers advised:

Possible response to the user:
Everything seems ok, the repository, the connectivity.
Some people have reported similar issues with other repositories related to problems with `zypper`
Some claim to have it solved by reinstalling a failing gpg2:
```zypper in --force gpg2```
Some others report success deleting /var/cache/zypp/raw/<REPONAME> :
```rm -r /var/cache/zypp/raw/MEGAsync*```

Doing a
```zypper -vvv clean -a```
and
```zypper -vvv refresh```

later will check for success.

Some suggest to reinstall zypper (that's not recommended).

Also, ensure that
```rpm -q gpg-pubkey --qf '%{name}-%{version}-%{release} --> %{summary}
'```
Contains:
```gpg-pubkey-7f068e5d-563dc081 --> gpg(MegaLimited <[EMAIL="support@mega.co.nz"]support@mega.co.nz[/EMAIL]>)```

Anyway, in the worst case scenario, you can manually delete mega repository:
```rm /etc/zypp/repos.d/megasync.repo```
to avoid further error messages.

In this case, your megasync application won't be updated. We would recommend you to regularly check for updates (at `[https://mega.nz/#sync`](https://mega.nz/#sync)) to keep on with the latest features.