System Update fails

Hi, when I try to update my Yunohost Installation (on a Raspberry Pi 2) I get an error regarding MongoDB:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/moulinette/interfaces/api.py", line 406, in process
    ret = self.actionsmap.process(arguments, timeout=30, route=_route)
  File "/usr/lib/python2.7/dist-packages/moulinette/actionsmap.py", line 495, in process
    return func(**arguments)
  File "/usr/lib/moulinette/yunohost/tools.py", line 412, in tools_update
    if not cache.update():
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 443, in update
    raise FetchFailedException(e)
FetchFailedException: W:Failed to fetch http://repo.mongodb.org/apt/debian/dists/wheezy/mongodb-org/3.0/Release  Unable to find expected entry 'main/binary-armhf/Packages' in Release file (Wrong sources.list entry or malformed file)
, E:Some index files failed to download. They have been ignored, or old ones used instead.

Can you try to see if apt-get update triggers the same kind of error (especially the last line ?)

Hello,

I am facing the same problem during the update, with Yunohost interface or with the command apt-get update

Yunohost version : 2.7.10

Hit http://mirrordirector.raspbian.org jessie InRelease
Hit http://archive.raspberrypi.org jessie InRelease
Hit http://repo.yunohost.org jessie InRelease
Ign http://repo.mongodb.org jessie/mongodb-org/3.2 InRelease
Hit http://repo.mongodb.org jessie/mongodb-org/3.2 Release.gpg
Get:1 http://repo.yunohost.org jessie/stable armhf Packages [3,611 B]
Hit http://repo.mongodb.org jessie/mongodb-org/3.2 Release
Hit http://archive.raspberrypi.org jessie/main armhf Packages
Hit http://archive.raspberrypi.org jessie/ui armhf Packages
Hit http://mirrordirector.raspbian.org jessie/main armhf Packages
Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages

W: Failed to fetch http://repo.mongodb.org/apt/debian/dists/jessie/mongodb-org/3.2/Release Unable to find expected entry ‘main/binary-armhf/Packages’ in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used instead.

Thanks :wink:

Meh that’s weird … I definitely think this is some app doing this as this mongodb doesn’t pop by itself in one’s sources.list

Additionally that might be related to the fact that mongodb doesn’t support armhf architectures I think …

So did you try to install a particular app recently ? I think I see some that uses it, like nodebb, rocketchat, wekan, …

1 Like

Thanks for your reply @Aleks !

I did try to install wekan few weeks ago without success…So I looked into the yunohost.log and I found this :

ynh_install_app_dependencies 'mongodb-org mongodb*........'
local 'dependencies=mongodb-org mongodb*........'
create mode 100644 apt/sources.list.d/mongodb-org-3.2.list
W: Failed to fetch http://repo.mongodb.org/apt/debian/dists/jessie/mongodb-org/3.2/Release  Unable to find expected entry 'main/binary-armhf/Packages' in Release file (Wrong sources.list entry or malformed file)

I deleted the mongodb-org-3.2.list and everything works perfectly ! :star_struck::+1:

Thank you so much