Can't install yadedaily in Ubuntu16.04

Asked by Xu Mengqian on 2019-04-25

Hi all:
When I install yadedaily in Ubuntu16.04,I have met some problems.
Then I went to install yadedaily using:
sudo bash -c 'echo "deb http://www.yade-dem.org/packages/ xenial/" >> /etc/apt/sources.list'
wget -O - http://www.yade-dem.org/packages/yadedev_pub.gpg | sudo apt-key add -
sudo apt-get update

But I have got these messages:
Get:1 http://www.yade-dem.org/packages xenial/ InRelease [2443 B]
Hit:2 http://cn.archive.ubuntu.com/ubuntu xenial InRelease
Get:3 http://www.yade-dem.org/packages xenial/ Packages [2187 B]
Ign:3 http://www.yade-dem.org/packages xenial/ Packages
Hit:4 http://cn.archive.ubuntu.com/ubuntu xenial-updates InRelease
Get:3 http://www.yade-dem.org/packages xenial/ Packages [1945 B]
Ign:3 http://www.yade-dem.org/packages xenial/ Packages
Hit:5 http://cn.archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:3 http://www.yade-dem.org/packages xenial/ Packages [6331 B]
Err:3 http://www.yade-dem.org/packages xenial/ Packages
  Hash Sum mismatch
Hit:6 http://cn.archive.ubuntu.com/ubuntu xenial-security InRelease
Fetched 8774 B in 2s (4002 B/s)
Reading package lists... Done
E: Failed to fetch http://www.yade-dem.org/packages/xenial/Packages Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.

I don't know why...
Thank you all
Xu

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
2019-05-06
Last query:
2019-05-06
Last reply:
2019-04-28
Robert Caulk (rcaulk) said : #1

What happens when you continue with the commands highlighted in [1]?

sudo apt-get install yadedaily

?

[1]https://yade-dev.gitlab.io/trunk/installation.html#packages

Xu Mengqian (yrainy.) said : #2

I got these messages:

[sudo] password for xmq:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package yadedaily

Manfred Hampl (m-hampl) said : #3

What happens if you repeat the command

sudo apt-get update

three times?
You you always get the same error messages?

Xu Mengqian (yrainy.) said : #4

Yes,I always get the same error messages..

Robert Caulk (rcaulk) said : #5

does

sudo apt-get install yade

work?

Manfred Hampl (m-hampl) said : #6

I have set up a test system with Ubuntu xenial, and I do receive the same error messages:


Get:6 http://www.yade-dem.org/packages xenial/ InRelease [2443 B]
Get:7 http://www.yade-dem.org/packages xenial/ Packages [2187 B]
Ign:7 http://www.yade-dem.org/packages xenial/ Packages
Get:7 http://www.yade-dem.org/packages xenial/ Packages [1945 B]
Ign:7 http://www.yade-dem.org/packages xenial/ Packages
Get:7 http://www.yade-dem.org/packages xenial/ Packages [6331 B]
Err:7 http://www.yade-dem.org/packages xenial/ Packages
  Hash Sum mismatch

My conclusion is that there is something wrong with the files on the www.yade-dem.org server.
Apparently there is an inconsistency between the hash values provided for verifying the files and the real files.

The same issue seems to be there also for bionic and probably also for all other release names.

The strange thing is that the "packages.*" files are dated April 18, but the "*release*" files with the checksums are from April 16

Can someone of the Yade developers or package maintainers have a look?

Chareyre (bruno-chareyre-9) said : #7

Hi,
Not sure it's related but the server has been migrated last week.
The current situation is that the old buildbot system that was building the
daily packages is halted and a new system based on gitlab will be set up.
In the meantime I would suggest using numbered releases like 2018b, since
the packages which appear atm will not be fixed.
Sorry for inconvenience.
Bruno

Le ven. 26 avr. 2019 19:02, Manfred Hampl <
<email address hidden>> a écrit :

> Question #680432 on Yade changed:
> https://answers.launchpad.net/yade/+question/680432
>
> Manfred Hampl proposed the following answer:
> I have set up a test system with Ubuntu xenial, and I do receive the
> same error messages:
>
> …
> Get:6 http://www.yade-dem.org/packages xenial/ InRelease [2443 B]
> Get:7 http://www.yade-dem.org/packages xenial/ Packages [2187 B]
> Ign:7 http://www.yade-dem.org/packages xenial/ Packages
> Get:7 http://www.yade-dem.org/packages xenial/ Packages [1945 B]
> Ign:7 http://www.yade-dem.org/packages xenial/ Packages
> Get:7 http://www.yade-dem.org/packages xenial/ Packages [6331 B]
> Err:7 http://www.yade-dem.org/packages xenial/ Packages
> Hash Sum mismatch
> …
>
> My conclusion is that there is something wrong with the files on the
> www.yade-dem.org server.
> Apparently there is an inconsistency between the hash values provided for
> verifying the files and the real files.
>
> The same issue seems to be there also for bionic and probably also for
> all other release names.
>
> The strange thing is that the "packages.*" files are dated April 18, but
> the "*release*" files with the checksums are from April 16
>
> Can someone of the Yade developers or package maintainers have a look?
>
> --
> You received this question notification because your team yade-users is
> an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>

Xu Mengqian (yrainy.) said : #9

Dear Robert,
No,it can't work.
It shows: Unable to locate package yadedaily.

Xu Mengqian (yrainy.) said : #10

Dear Chareyre,
I also want to use numbered releases, but I can't use it to consolidate the clump.
I have tried Yade.2018b and Yade.1.20.
All of them can't consolidate the clump normally.
So I have tried Yadedaily,it works...(Yadedaily can be installed normally in two weeks before)
But now yadedaily can't be installed, i don't know what to do.

Chareyre (bruno-chareyre-9) said : #11

Hi, You can compile from source code.
Bruno

Le sam. 27 avr. 2019 17:17, Xu Mengqian <
<email address hidden>> a écrit :

> Question #680432 on Yade changed:
> https://answers.launchpad.net/yade/+question/680432
>
> Xu Mengqian posted a new comment:
> Dear Chareyre,
> I also want to use numbered releases, but I can't use it to consolidate
> the clump.
> I have tried Yade.2018b and Yade.1.20.
> All of them can't consolidate the clump normally.
> So I have tried Yadedaily,it works...(Yadedaily can be installed normally
> in two weeks before)
> But now yadedaily can't be installed, i don't know what to do.
>
> --
> You received this question notification because your team yade-users is
> an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>
>
>

Best Manfred Hampl (m-hampl) said : #12

If you have already downloaded and installed the yadedaily packages two weeks ago, why do you want to download them again? The version on yade-dem.org is still the same.

There is the possibility to circumvent the hash sum mismatch problem by manually downloading the packages form the yade-dem server.

The following should work:

wget http://www.yade-dem.org/packages/xenial/yadedaily_2018.02b-290bf6a54e~xenial-1_amd64.deb
wget http://www.yade-dem.org/packages/xenial/libyadedaily_2018.02b-290bf6a54e~xenial-1_amd64.deb
wget http://www.yade-dem.org/packages/xenial/yadedaily-doc_2018.02b-290bf6a54e~xenial-1_all.deb
wget http://www.yade-dem.org/packages/xenial/yadedaily_2018.02b-290bf6a54e~xenial-1_amd64.deb
sudo dpkg --install ./*yadedaily*.deb

Xu Mengqian (yrainy.) said : #13

Thanks Manfred Hampl, that solved my question.

Manfred Hampl (m-hampl) said : #14

It seems that there is a copy/paste error in comment #12.
For the fourth package it should be

wget http://www.yade-dem.org/packages/xenial/python-yadedaily_2018.02b-290bf6a54e~xenial-1_amd64.deb