Closed IanHeywood closed 9 years ago
hm, one of the packages you install depends on casacore 1.7, which conflicts with casarest.
can you try to install the packages one by one and see which one depends on casacore 1.7? I thought I updated all packages, but something went wrong there.
Looks like
sudo apt-get build-dep -y meqtrees-timba
is the offender.
Cheers.
can't replicate the problem.
what is the content of /etc/apt/sources.list.d/radio-astro-main-trusty.list
and did you do a apt-get update
before the build-dep command?
I did an apt-get update as part of the Launchpad preparations.
ianh@nerv:~$ more /etc/apt/sources.list.d/radio-astro-main-trusty.list
deb http://ppa.launchpad.net/radio-astro/main/ubuntu trusty main
# deb-src http://ppa.launchpad.net/radio-astro/main/ubuntu trusty main
uncomment the commented line or do sudo add-apt-repository -s ppa:radio-astro/main
, update and try again.
you forgot to add the -s flag, which adds the PPA as a source repo. Is that not in the documentation?
also, it looks like you still have the old ska-sa repo enabed, please remove that from your /etc/apt/sources.list.d
folder.
Uncommenting the line has fixed it.
The -s flag is in the documentation for the "build from source" section but not in the "install binaries" section, which might have caused the trouble. Also, the old ska-sa repro is the one that is pointed to in the "build from source" instructions so that might need changing.
I guess the lack of a -s flag in the binaries section (unless it should be there) combined with the old repo in the from source section was the problem. This is a brand new VM so there are no hangovers from previous builds.
Cheers.
A new problem at the next step:
ianh@nerv:~$ sudo apt-get install -y libcasacore-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libboost-filesystem1.54.0 libboost-regex1.54.0 libboost-thread1.54.0
libcasacore2 libgsl0ldbl liblog4cplus-1.0-4 libmeqtrees-timba0
meqtrees-timba python-kittens python-meqtrees-timba python-purr python-pywcs
python-tigger
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
libcasacore-dev
0 to upgrade, 1 to newly install, 0 to remove and 1 not to upgrade.
19 not fully installed or removed.
Need to get 0 B/1,501 kB of archives.
After this operation, 11.9 MB of additional disk space will be used.
(Reading database ... 208460 files and directories currently installed.)
Preparing to unpack .../libcasacore-dev_1.7.0-2trusty_amd64.deb ...
Unpacking libcasacore-dev (1.7.0-2trusty) ...
dpkg: error processing archive /var/cache/apt/archives/libcasacore-dev_1.7.0-2trusty_amd64.deb (--unpack):
trying to overwrite '/usr/lib/libcasa_components.so', which is also in package casarest 1.3.1-2trusty
Errors were encountered while processing:
/var/cache/apt/archives/libcasacore-dev_1.7.0-2trusty_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Can you update the doc or give a link so i can modify.
you are installing the development files for casacore 1.7 (libcasacore-dev
) which is there for historical reasons, I suggest you install libcasacore2-dev
Thanks, libcasacore2-dev has installed successfully.
The binary documentation that may or may not need the -s flag is here:
and the build from source documentation that has the old ska-sa repository and the historical libcasacore-dev item is here:
those are both the same link
found and fixed
I obviously haven't mastered markdown either. I going to blame the fact that I'm having to use Ctrl+C, Shift+Ctrl+C and Cmd+C for copying depending on what window I'm in.
Cheers.
Another one for the collection: