Questions about updating yade

Asked by Ziyu Wang

Dear all,
Since in question [1], you mentioned that yadedaily has not been updated yet, so I have been looking forward to the update.
But when I run the command:

sudo apt-get update

The prompt is as follows:
Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://www.yade-dem.org/packages focal InRelease' doesn't support architecture 'i386'

1.I don't know how to solve this problem.My ubuntu is 20.04.
2.My yadedaily is 20210923-5934~44b94a0~focal1 now.So how should I know the latest version of yadedaily?

Thanks for your kindly help!
[1]https://answers.launchpad.net/yade/+question/698836

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Ziyu Wang
Solved:
Last query:
Last reply:
Revision history for this message
Robert Caulk (rcaulk) said :
#1

Hello,

Yadedaily updates everytime a new merge is pushed to the source code. The update you are referring to was pushed last week to the source code. In other words, it should be updated now.

Please follow the installation instructions here [1] for installing the most up to date yadedaily.

rc

[1]https://yade-dem.org/doc/installation.html

Revision history for this message
Ziyu Wang (ziyuwang1) said :
#2

Hi Robert,

I'm sorry to delay replying to you due to other things.But my yadedaily does not seem to be able to update automatically.
I have installed and updated yadedaily as you gave [1], I even uninstalled and reinstalled yadedaily,but both methods lead to the same result:My yadedaily version is 20210923-5934~44b94a0~focal1.And in this version,the Thermalengine seems to be in an unrepaired state,as we discussed before.

Looking forward for your reply.
Best regards!

Revision history for this message
Robert Caulk (rcaulk) said :
#3

Hello,

You can try going in manually and removing this line from /etc/apt/sources.list:

deb http://www.yade-dem.org/packages/ focal main

then uninstall:

sudo apt-get remove yadedaily
sudo apt-key remove AA915EEB

the install:

sudo bash -c 'echo "deb http://www.yade-dem.org/packages/ focal main" >> /etc/apt/sources.list'
wget -O - http://www.yade-dem.org/packages/yadedev_pub.gpg | sudo apt-key add -
sudo apt-get update
sudo apt-get install yadedaily

If that does not work, then there may be some issue with your distribution (are you actually running ubuntu 20.04?)

We provide a slew of ways to access the most up to date code beyond the packaged yadedaily. You can also compiling from sources [1], and use docker [2].

If none of these work for you, and you are in-fact running ubuntu 18.04 or 20.04, then I am afraid to say, you are alone in this issue :/

-rc

[1]https://yade-dem.org/doc/installation.html#source-code
[2]https://yade-dem.org/doc/installation.html#docker

Revision history for this message
Ziyu Wang (ziyuwang1) said :
#4

Hi,
First of all, after I check the relevant information, I solved the following problems:
>>Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://www.yade-dem.org/packages focal InRelease' doesn't support architecture 'i386'
Through:
Add [arch = amd64] in the deb statement.
>>deb [arch=amd64] http://www.yade-dem.org/packages/ focal main

After the changes, the system no longer prompts I386 error.
I thought I could use the latest Yadedaily, but the truth is that the version is still the 20210923-5934~44b94a0~focal1 version.This makes me very frustrated...
My Linux version:Ubuntu 20.04.3 LTS
(I have tried the source-code,but because I am not familiar with compilation, there have been more problems..)

After searching on the forum, I found that this seems to be only a problem that I have encountered alone...
Thank you again for your friendly help!

Revision history for this message
Robert Caulk (rcaulk) said :
#5

Sorry to hear that, I am not sure I can do much more to help you. One last thing could be to ensure you are downloading from "Main server" inside the "Software & Updates" menu. Although, I don't think that has anything to do with custom repos like yadedaily. Only stable yade.

>>(I have tried the source-code,but because I am not familiar with compilation, there have been more problems..)

Only one way to *become* familiar, right? Feel free to post questions with your compilation errors.

Revision history for this message
Ziyu Wang (ziyuwang1) said :
#6

Thanks a lot for your help!
I will try to solve this problem, or I will learn source-code...
Thanks again.That solved my problem.

Revision history for this message
Jérôme Duriez (jduriez) said :
#7

Two last remarks:

- "Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://www.yade-dem.org/packages focal InRelease' doesn't support architecture 'i386'"

is not really an error / problem for you. I see it more as a warning message telling you that yade packages are not available for 32-bit hardware.

Which is not a problem if your machine is 64-bit anyway, as you hardcoded, I guess, adding [arch = amd64] in the deb statement. After that change, apt-get does not even bother asking for a non-existing 32-bit compatible package and you do not get the message but nothing important actually changed, I guess.

- As for the yadedaily version, you maybe noticed that the "44b94a0" part of your "20210923-5934~44b94a0~focal1" refers to a so-called git hash = label of source code version as of [*] = a "commit".

You can know whether your yadedaily is the most recent by checking whether more recent commits exist (e.g. at [**]), modulo the short (1 day ?) delay for a new commit at [**] to make its way in your package manager.

Once you know a more recent version exists, it is "just" a matter of package update, see Robert Caulk's advice for instance. (Maybe --reinstall option of apt-get could be tried as well ?)

[*] https://gitlab.com/yade-dev/trunk/-/commit/44b94a0d7296793290d001a669d78164d4bdf291
[**] https://gitlab.com/yade-dev/trunk/-/commits/master