Opened 10 years ago

Closed 10 years ago

#1367 closed defect (fixed)

QGis 2.4 by pkg gives error

Reported by: darkblueb Owned by: live-demo@…
Priority: normal Milestone: OSGeoLive8.0
Component: OSGeoLive Keywords: qgis
Cc:

Description

note - this is a non-standard situation described here, primarily for information.

On build 11530, QGis is version 2.2.. so, I copied install_qgis.sh and added --upgrade to the apt-get line. Installing shows:

Reading package lists...
W: GPG error: http://de.geopublishing.org trusty Release: The following signatures were invalid: KEYEXPIRED 1401487200 KEYEXPIRED 1401487200 KEYEXPIRED 1401487200
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libqt4-sql-sqlite is already the newest version.
python-qt4-phonon is already the newest version.
gpsbabel is already the newest version.
grass-doc is already the newest version.
python-rpy2 is already the newest version.
The following package was automatically installed and is no longer required:
  libqgis2.2.0
Use 'apt-get autoremove' to remove it.
The following extra packages will be installed:
  libqgis-analysis2.4.0 libqgis-core2.4.0 libqgis-gui2.4.0
  libqgis-networkanalysis2.4.0 libqgisgrass2.4.0 libqgispython2.4.0
  python-httplib2 qgis-mapserver qgis-providers qgis-providers-common
Recommended packages:
  qgis-plugin-globe
The following NEW packages will be installed:
  libqgis-analysis2.4.0 libqgis-core2.4.0 libqgis-gui2.4.0
  libqgis-networkanalysis2.4.0 libqgisgrass2.4.0 libqgispython2.4.0
  python-httplib2
The following packages will be upgraded:
  python-qgis python-qgis-common qgis qgis-common qgis-mapserver
  qgis-plugin-grass qgis-plugin-grass-common qgis-providers
  qgis-providers-common
9 upgraded, 7 newly installed, 0 to remove and 65 not upgraded.
Need to get 33.4 MB of archives.
After this operation, 31.0 MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty/main python-httplib2 all 0.8-2build1 [35.4 kB]
Get:2 http://ppa.launchpad.net/osgeolive/nightly/ubuntu/ trusty/main qgis-plugin-grass i386 2.4.0-0trusty1 [1,547 kB]
Get:3 http://ppa.launchpad.net/osgeolive/nightly/ubuntu/ trusty/main qgis-plugin-grass-common all 2.4.0-0trusty1 [1,258 kB]
Get:4 http://ppa.launchpad.net/osgeolive/nightly/ubuntu/ trusty/main libqgis-core2.4.0 i386 2.4.0-0trusty1 [2,632 kB]
Get:5 http://ppa.launchpad.net/osgeolive/nightly/ubuntu/ trusty/main libqgis-gui2.4.0 i386 2.4.0-0trusty1 [2,109 kB]
Get:6 http://ppa.launchpad.net/osgeolive/nightly/ubuntu/ trusty/main libqgisgrass2.4.0 i386 2.4.0-0trusty1 [894 kB]
Get:7 http://ppa.launchpad.net/osgeolive/nightly/ubuntu/ trusty/main libqgis-analysis2.4.0 i386 2.4.0-0trusty1 [1,005 kB]
Get:8 http://ppa.launchpad.net/osgeolive/nightly/ubuntu/ trusty/main libqgis-networkanalysis2.4.0 i386 2.4.0-0trusty1 [863 kB]
Get:9 http://ppa.launchpad.net/osgeolive/nightly/ubuntu/ trusty/main qgis i386 2.4.0-0trusty1 [4,983 kB]
Get:10 http://ppa.launchpad.net/osgeolive/nightly/ubuntu/ trusty/main qgis-mapserver i386 2.4.0-0trusty1 [1,210 kB]
Get:11 http://ppa.launchpad.net/osgeolive/nightly/ubuntu/ trusty/main qgis-providers i386 2.4.0-0trusty1 [1,873 kB]
Get:12 http://ppa.launchpad.net/osgeolive/nightly/ubuntu/ trusty/main qgis-providers-common all 2.4.0-0trusty1 [1,607 kB]
Get:13 http://ppa.launchpad.net/osgeolive/nightly/ubuntu/ trusty/main qgis-common all 2.4.0-0trusty1 [6,563 kB]
Get:14 http://ppa.launchpad.net/osgeolive/nightly/ubuntu/ trusty/main libqgispython2.4.0 i386 2.4.0-0trusty1 [847 kB]
Get:15 http://ppa.launchpad.net/osgeolive/nightly/ubuntu/ trusty/main python-qgis i386 2.4.0-0trusty1 [2,896 kB]
Get:16 http://ppa.launchpad.net/osgeolive/nightly/ubuntu/ trusty/main python-qgis-common all 2.4.0-0trusty1 [3,101 kB]
Fetched 33.4 MB in 41s (811 kB/s)                                              
(Reading database ... 206460 files and directories currently installed.)
Preparing to unpack .../qgis-plugin-grass_2.4.0-0trusty1_i386.deb ...
Leaving 'diversion of /usr/bin/qgis to /usr/bin/qgis.bin by qgis-plugin-grass'
Leaving 'diversion of /usr/bin/qbrowser to /usr/bin/qbrowser.bin by qgis-plugin-grass'
Unpacking qgis-plugin-grass (2.4.0-0trusty1) over (2.2.0-3+trusty1) ...
Preparing to unpack .../qgis-plugin-grass-common_2.4.0-0trusty1_all.deb ...
Unpacking qgis-plugin-grass-common (2.4.0-0trusty1) over (2.2.0-3+trusty1) ...
Selecting previously unselected package libqgis-core2.4.0.
Preparing to unpack .../libqgis-core2.4.0_2.4.0-0trusty1_i386.deb ...
Unpacking libqgis-core2.4.0 (2.4.0-0trusty1) ...
Selecting previously unselected package libqgis-gui2.4.0.
Preparing to unpack .../libqgis-gui2.4.0_2.4.0-0trusty1_i386.deb ...
Unpacking libqgis-gui2.4.0 (2.4.0-0trusty1) ...
Selecting previously unselected package libqgisgrass2.4.0.
Preparing to unpack .../libqgisgrass2.4.0_2.4.0-0trusty1_i386.deb ...
Unpacking libqgisgrass2.4.0 (2.4.0-0trusty1) ...
Selecting previously unselected package libqgis-analysis2.4.0.
Preparing to unpack .../libqgis-analysis2.4.0_2.4.0-0trusty1_i386.deb ...
Unpacking libqgis-analysis2.4.0 (2.4.0-0trusty1) ...
Selecting previously unselected package libqgis-networkanalysis2.4.0.
Preparing to unpack .../libqgis-networkanalysis2.4.0_2.4.0-0trusty1_i386.deb ...
Unpacking libqgis-networkanalysis2.4.0 (2.4.0-0trusty1) ...
Preparing to unpack .../qgis_2.4.0-0trusty1_i386.deb ...
Unpacking qgis (2.4.0-0trusty1) over (2.2.0-3+trusty1) ...
Preparing to unpack .../qgis-mapserver_2.4.0-0trusty1_i386.deb ...
Unpacking qgis-mapserver (2.4.0-0trusty1) over (2.2.0-3+trusty1) ...
Preparing to unpack .../qgis-providers_2.4.0-0trusty1_i386.deb ...
Unpacking qgis-providers (2.4.0-0trusty1) over (2.2.0-3+trusty1) ...
Preparing to unpack .../qgis-providers-common_2.4.0-0trusty1_all.deb ...
Unpacking qgis-providers-common (2.4.0-0trusty1) over (2.2.0-3+trusty1) ...
Preparing to unpack .../qgis-common_2.4.0-0trusty1_all.deb ...
Unpacking qgis-common (2.4.0-0trusty1) over (2.2.0-3+trusty1) ...
Selecting previously unselected package libqgispython2.4.0.
Preparing to unpack .../libqgispython2.4.0_2.4.0-0trusty1_i386.deb ...
Unpacking libqgispython2.4.0 (2.4.0-0trusty1) ...
Selecting previously unselected package python-httplib2.
Preparing to unpack .../python-httplib2_0.8-2build1_all.deb ...
Unpacking python-httplib2 (0.8-2build1) ...
Preparing to unpack .../python-qgis_2.4.0-0trusty1_i386.deb ...
Unpacking python-qgis (2.4.0-0trusty1) over (2.2.0-3+trusty1) ...
Preparing to unpack .../python-qgis-common_2.4.0-0trusty1_all.deb ...
Unpacking python-qgis-common (2.4.0-0trusty1) over (2.2.0-3+trusty1) ...
dpkg: error processing archive /var/cache/apt/archives/python-qgis-common_2.4.0-0trusty1_all.deb (--unpack):
 trying to overwrite '/usr/share/qgis/python/plugins/MetaSearch/util.py', which is also in package qgis-osgeolive-plugins 7.9-3
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for mime-support (3.54ubuntu1) ...
Processing triggers for menu (2.1.46ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for man-db (2.6.7.1-1) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Errors were encountered while processing:
 /var/cache/apt/archives/python-qgis-common_2.4.0-0trusty1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
ERROR: Package install failed! Aborting.

Attachments (1)

plugins_installation.ods (57.6 KB ) - added by egonzale 10 years ago.
QGIS plugins added to livedvd8

Download all attachments as: .zip

Change History (8)

comment:1 by hamish, 10 years ago

dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)

general checklist for broken pipes: can you repeat it? how much RAM? is this in a chroot or tunneled over ssh?

trying to overwrite '/usr/share/qgis/python/plugins/MetaSearch/util.py', which is also in package qgis-osgeolive-plugins 7.9-3

The Debian family only allows one package to provide any particular file, no ambiguity allowed. 'dpkg -S filename' should tell you which package needs to be uninstalled before the one providing the file of the same name can be installed afresh. If it is an intentional move, the 2.4.0 package should have a Conflicts: line in the debian/control file to ensure that the old package gets removed before the new one is installed.

regards, Hamish

comment:2 by kalxas, 10 years ago

Hi guys,

I added qgis 2.4 yesterday and I wanted some more time to make sure the packages work together, so everything reported here is already known issue. I need to re-package the extra plugins since MetaSearch is now an official QGIS plugin ;)

in reply to:  2 comment:3 by egonzale, 10 years ago

I reviewed that qgis 2.4 works, installed a number of plugins looking at the ones installed in the previous LiveDVD and created a tar.gz with it. Kalxas will implement it for next build

by egonzale, 10 years ago

Attachment: plugins_installation.ods added

QGIS plugins added to livedvd8

comment:4 by kalxas, 10 years ago

thanks!

comment:5 by kalxas, 10 years ago

Updated in [11587]

comment:6 by kalxas, 10 years ago

Short description of how this is done for future reference (works on 14.04):

  1. Install Ruby Gems:

# sudo apt-get install ruby ruby-dev

  1. Install FPM

# gem install fpm

  1. Install QGIS from OSGeoLive ppa
  1. Move default plugins out of the default path:

# mkdir -p /usr/share/qgis/python/default_plugins

# mv /usr/share/qgis/python/plugins/* /usr/share/qgis/python/default_plugins/

  1. Open QGIS and install wanted plugins
  1. Move the new plugins to the default folder

# mv ~/.qgis2/python/plugins/* /usr/share/qgis/python/plugins/

# chown -R root:root /usr/share/qgis/python/plugins

  1. Create DEB using FPM:

# cd ~

# sudo su

# fpm -s dir -t deb -a all -n qgis-osgeolive-plugins -v 8.0 --iteration 1 \

-d qgis -m "<gcpp.kalxas@…>" /usr/share/qgis/python/plugins

The deb is then available in ~/

  1. Upload to download.osgeo.org and update the qgis installation script.

comment:7 by kalxas, 10 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.