Problem installing yadedaily

Asked by weijy

Problem came up when I tried to install yadedaily as instructed by:
https://yade-dem.org/doc/installation.html

When I tried "sudo apt-get update" it ends with this:
Reading package lists... Done
W: Duplicate sources.list entry http://www.yade-dem.org/packages/ xenial/ Packages (/var/lib/apt/lists/www.yade-dem.org_packages_xenial_Packages)
W: Duplicate sources.list entry http://www.yade-dem.org/packages/ xenial/ Packages (/var/lib/apt/lists/www.yade-dem.org_packages_xenial_Packages)
W: Duplicate sources.list entry http://www.yade-dem.org/packages/ xenial/ Packages (/var/lib/apt/lists/www.yade-dem.org_packages_xenial_Packages)
W: Duplicate sources.list entry http://www.yade-dem.org/packages/ xenial/ Packages (/var/lib/apt/lists/www.yade-dem.org_packages_xenial_Packages)
W: Duplicate sources.list entry http://www.yade-dem.org/packages/ xenial/ Packages (/var/lib/apt/lists/www.yade-dem.org_packages_xenial_Packages)
W: Duplicate sources.list entry http://www.yade-dem.org/packages/ xenial/ Packages (/var/lib/apt/lists/www.yade-dem.org_packages_xenial_Packages)
W: You may want to run apt-get update to correct these problems

When I tried "sudo apt-get install yadedaily" in showed as following:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 yadedaily : Depends: libyadedaily (= 2017.01a-11-11c276f~xenial-1) but it is not going to be installed
             Depends: python-yadedaily (= 2017.01a-11-11c276f~xenial-1) but it is not going to be installed
             Depends: python-numpy (>= 1:1.10.0~b1) but 1:1.8.2-0ubuntu0.1 is to be installed
E: Unable to correct problems, you have held broken packages.

What should I do? Which packages should I download? My system is ubuntu 14.04 LTS.

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Bruno Chareyre (bruno-chareyre) said :
#1
Revision history for this message
weijy (weijy) said :
#2

Thank you Bruno! That solved the bad entry problem.
But the second problem still exists. So I edited the question.

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

For diagnostic purposes please provide the output of the commands

uname -a
lsb_release -crid
sudo apt-get update
apt-cache policy yadedaily libyadedaily python-yadedaily python-numpy
apt-get --simulate install yadedaily libyadedaily python-yadedaily python-numpy

Revision history for this message
weijy (weijy) said :
#4

weijy@weijy-Inspiron-7447:~$ uname -a
Linux weijy-Inspiron-7447 4.2.0-42-generic #49~14.04.1-Ubuntu SMP Wed Jun 29 20:22:11 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
weijy@weijy-Inspiron-7447:~$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 14.04.4 LTS
Release: 14.04
Codename: trusty
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
weijy@weijy-Inspiron-7447:~$ sudo apt-get update
[sudo] password for weijy:
Ign http://cn.archive.ubuntu.com trusty InRelease
Hit http://cn.archive.ubuntu.com trusty-updates InRelease
Hit http://cn.archive.ubuntu.com trusty-backports InRelease
Hit http://cn.archive.ubuntu.com trusty Release.gpg
Hit http://cn.archive.ubuntu.com trusty-updates/main Sources
Hit http://cn.archive.ubuntu.com trusty-updates/restricted Sources
Hit http://cn.archive.ubuntu.com trusty-updates/universe Sources
Hit http://cn.archive.ubuntu.com trusty-updates/multiverse Sources
Hit http://cn.archive.ubuntu.com trusty-updates/main amd64 Packages
Hit http://cn.archive.ubuntu.com trusty-updates/restricted amd64 Packages
Hit http://cn.archive.ubuntu.com trusty-updates/universe amd64 Packages
Hit http://cn.archive.ubuntu.com trusty-updates/multiverse amd64 Packages
Hit http://www.yade-dem.org xenial/ InRelease
Hit http://cn.archive.ubuntu.com trusty-updates/main i386 Packages
Hit http://cn.archive.ubuntu.com trusty-updates/restricted i386 Packages
Get:1 http://security.ubuntu.com trusty-security InRelease [65.9 kB]
Ign http://extras.ubuntu.com trusty InRelease
Hit http://cn.archive.ubuntu.com trusty-updates/universe i386 Packages
Hit http://cn.archive.ubuntu.com trusty-updates/multiverse i386 Packages
Hit http://cn.archive.ubuntu.com trusty-updates/main Translation-en
Hit http://cn.archive.ubuntu.com trusty-updates/multiverse Translation-en
Hit http://www.yade-dem.org xenial/ Packages
Hit http://cn.archive.ubuntu.com trusty-updates/restricted Translation-en
Hit http://cn.archive.ubuntu.com trusty-updates/universe Translation-en
Hit http://extras.ubuntu.com trusty Release.gpg
Hit http://cn.archive.ubuntu.com trusty-backports/main Sources
Hit http://cn.archive.ubuntu.com trusty-backports/restricted Sources
Hit http://cn.archive.ubuntu.com trusty-backports/universe Sources
Hit http://cn.archive.ubuntu.com trusty-backports/multiverse Sources
Hit http://cn.archive.ubuntu.com trusty-backports/main amd64 Packages
Hit http://cn.archive.ubuntu.com trusty-backports/restricted amd64 Packages
Hit http://cn.archive.ubuntu.com trusty-backports/universe amd64 Packages
Hit http://cn.archive.ubuntu.com trusty-backports/multiverse amd64 Packages
Hit http://extras.ubuntu.com trusty Release
Hit http://cn.archive.ubuntu.com trusty-backports/main i386 Packages
Hit http://cn.archive.ubuntu.com trusty-backports/restricted i386 Packages
Hit http://cn.archive.ubuntu.com trusty-backports/universe i386 Packages
Hit http://cn.archive.ubuntu.com trusty-backports/multiverse i386 Packages
Hit http://cn.archive.ubuntu.com trusty-backports/main Translation-en
Hit http://cn.archive.ubuntu.com trusty-backports/multiverse Translation-en
Hit http://cn.archive.ubuntu.com trusty-backports/restricted Translation-en
Get:2 http://security.ubuntu.com trusty-security/main Sources [125 kB]
Hit http://cn.archive.ubuntu.com trusty-backports/universe Translation-en
Hit http://extras.ubuntu.com trusty/main Sources
Hit http://cn.archive.ubuntu.com trusty Release
Hit http://cn.archive.ubuntu.com trusty/main Sources
Hit http://cn.archive.ubuntu.com trusty/restricted Sources
Hit http://extras.ubuntu.com trusty/main amd64 Packages
Hit http://cn.archive.ubuntu.com trusty/universe Sources
Hit http://cn.archive.ubuntu.com trusty/multiverse Sources
Hit http://cn.archive.ubuntu.com trusty/main amd64 Packages
Hit http://cn.archive.ubuntu.com trusty/restricted amd64 Packages
Get:3 http://security.ubuntu.com trusty-security/restricted Sources [4,637 B]
Hit http://cn.archive.ubuntu.com trusty/universe amd64 Packages
Hit http://cn.archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://extras.ubuntu.com trusty/main i386 Packages
Hit http://cn.archive.ubuntu.com trusty/main i386 Packages
Hit http://cn.archive.ubuntu.com trusty/restricted i386 Packages
Hit http://cn.archive.ubuntu.com trusty/universe i386 Packages
Hit http://cn.archive.ubuntu.com trusty/multiverse i386 Packages
Get:4 http://security.ubuntu.com trusty-security/universe Sources [49.6 kB]
Hit http://cn.archive.ubuntu.com trusty/main Translation-en
Hit http://cn.archive.ubuntu.com trusty/main Translation-zh_CN
Hit http://cn.archive.ubuntu.com trusty/multiverse Translation-en
Hit http://cn.archive.ubuntu.com trusty/multiverse Translation-zh_CN
Get:5 http://security.ubuntu.com trusty-security/multiverse Sources [3,194 B]
Hit http://cn.archive.ubuntu.com trusty/restricted Translation-en
Hit http://cn.archive.ubuntu.com trusty/restricted Translation-zh_CN
Hit http://cn.archive.ubuntu.com trusty/universe Translation-en
Hit http://cn.archive.ubuntu.com trusty/universe Translation-zh_CN
Get:6 http://security.ubuntu.com trusty-security/main amd64 Packages [583 kB]
Ign http://cn.archive.ubuntu.com trusty/main Translation-en_US
Ign http://cn.archive.ubuntu.com trusty/multiverse Translation-en_US
Ign http://cn.archive.ubuntu.com trusty/restricted Translation-en_US
Ign http://cn.archive.ubuntu.com trusty/universe Translation-en_US
Ign http://www.yade-dem.org xenial/ Translation-en_US
Ign http://www.yade-dem.org xenial/ Translation-en
Get:7 http://security.ubuntu.com trusty-security/restricted amd64 Packages [13.4 kB]
Ign http://www.yade-dem.org xenial/ Translation-zh_CN
Get:8 http://security.ubuntu.com trusty-security/universe amd64 Packages [152 kB]
Get:9 http://security.ubuntu.com trusty-security/multiverse amd64 Packages [4,139 B]
Get:10 http://security.ubuntu.com trusty-security/main i386 Packages [543 kB]
Ign http://extras.ubuntu.com trusty/main Translation-en_US
Ign http://extras.ubuntu.com trusty/main Translation-en
Ign http://extras.ubuntu.com trusty/main Translation-zh_CN
Get:11 http://security.ubuntu.com trusty-security/restricted i386 Packages [13.1 kB]
Get:12 http://security.ubuntu.com trusty-security/universe i386 Packages [152 kB]
Get:13 http://security.ubuntu.com trusty-security/multiverse i386 Packages [4,278 B]
Hit http://security.ubuntu.com trusty-security/main Translation-en
Hit http://security.ubuntu.com trusty-security/multiverse Translation-en
Hit http://security.ubuntu.com trusty-security/restricted Translation-en
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Fetched 1,713 kB in 11s (146 kB/s)
Reading package lists... Done
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
weijy@weijy-Inspiron-7447:~$ apt-cache policy yadedaily libyadedaily python-yadedaily python-numpy
yadedaily:
  Installed: (none)
  Candidate: 2017.01a-11-11c276f~xenial-1
  Version table:
     2017.01a-11-11c276f~xenial-1 0
        500 http://www.yade-dem.org/packages/ xenial/ Packages
libyadedaily:
  Installed: (none)
  Candidate: 2017.01a-11-11c276f~xenial-1
  Version table:
     2017.01a-11-11c276f~xenial-1 0
        500 http://www.yade-dem.org/packages/ xenial/ Packages
python-yadedaily:
  Installed: (none)
  Candidate: 2017.01a-11-11c276f~xenial-1
  Version table:
     2017.01a-11-11c276f~xenial-1 0
        500 http://www.yade-dem.org/packages/ xenial/ Packages
python-numpy:
  Installed: 1:1.8.2-0ubuntu0.1
  Candidate: 1:1.8.2-0ubuntu0.1
  Version table:
 *** 1:1.8.2-0ubuntu0.1 0
        500 http://cn.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1:1.8.1-1ubuntu1 0
        500 http://cn.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
weijy@weijy-Inspiron-7447:~$ apt-get --simulate install yadedaily libyadedaily python-yadedaily python-numpy
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-numpy is already the newest version.
python-numpy set to manually installed.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libyadedaily : Depends: libboost-filesystem1.58.0 but it is not installable
                Depends: libboost-iostreams1.58.0 but it is not installable
                Depends: libboost-python1.58.0 but it is not installable
                Depends: libboost-regex1.58.0 but it is not installable
                Depends: libboost-serialization1.58.0 but it is not installable
                Depends: libboost-system1.58.0 but it is not installable
                Depends: libboost-thread1.58.0 but it is not installable
                Depends: libcgal11v5 but it is not installable
                Depends: libcholmod3.0.6 but it is not installable
                Depends: libgomp1 (>= 4.9) but 4.8.4-2ubuntu1~14.04.3 is to be installed
                Depends: libqt5core5a (>= 5.5.0) but 5.2.1+dfsg-1ubuntu14.3 is to be installed
                Depends: libstdc++6 (>= 5.2) but 4.8.4-2ubuntu1~14.04.3 is to be installed
                Depends: libvtk6.2 but it is not installable
 python-yadedaily : Depends: python-pyqt5 but it is not installable
                    Depends: python-numpy (>= 1:1.10.0~b1) but 1:1.8.2-0ubuntu0.1 is to be installed
                    Depends: libboost-filesystem1.58.0 but it is not installable
                    Depends: libboost-iostreams1.58.0 but it is not installable
                    Depends: libboost-python1.58.0 but it is not installable
                    Depends: libboost-serialization1.58.0 but it is not installable
                    Depends: libboost-system1.58.0 but it is not installable
                    Depends: libqt5core5a (>= 5.5.0) but 5.2.1+dfsg-1ubuntu14.3 is to be installed
                    Depends: libstdc++6 (>= 5.2) but 4.8.4-2ubuntu1~14.04.3 is to be installed
 yadedaily : Depends: python-numpy (>= 1:1.10.0~b1) but 1:1.8.2-0ubuntu0.1 is to be installed
E: Unable to correct problems, you have held broken packages.

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#5

You have a Ubuntu 14.04 "trusty" system, but you try installing the yadedaily version for Ubuntu 16.04 "xenial" - this does not work.

Edit your /etc/apt/sources.list file and change the line
"deb http://www.yade-dem.org/packages/ xenial/"
into
"deb http://www.yade-dem.org/packages/ trusty/"

And then issue the commands
"sudo apt-get update"
"sudo apt-get install yadedaily"
What do you get now?

(There is an inconsistency in the instructions with respect to the Ubuntu version name.)

Revision history for this message
weijy (weijy) said :
#6

Thanks Manfred Hampl, that solved my question.

Revision history for this message
Bruno Chareyre (bruno-chareyre) said :
#7

Please don't change the question when it is answered!
How could others find relevant answers in such a situation? Plus relevant answers become irrelevant to the new question...
Bruno

Revision history for this message
weijy (weijy) said :
#8

My bad. I didn't think of that.

-------------------------------------------
At 2017-02-20 22:38:39, "Bruno Chareyre" <email address hidden> wrote:
>Your question #466546 on Yade changed:
>https://answers.launchpad.net/yade/+question/466546
>
>Bruno Chareyre posted a new comment:
>Please don't change the question when it is answered!
>How could others find relevant answers in such a situation? Plus relevant answers become irrelevant to the new question...
>Bruno
>
>--
>You received this question notification because you asked the question.

Revision history for this message
Bruno Chareyre (bruno-chareyre) said :
#9

Thx!

Revision history for this message
xuelong14 (xuelong03) said :
#10

Will the calculation speed of version "xenial be faster than the version "trusty"?
Thank you.

Revision history for this message
Jan Stránský (honzik) said :
#11

Hello,
for completely new question, please open a new thread (especially if the answer is closed already)
cheers
Jan