Archive

Archive for the ‘linux’ Category

Install Digikam 4.14 on Ubuntu 14.04

December 6, 2015 Leave a comment

Digikam 14.04

I love Digikam to manage my pictures. I want to install the latest stable release on Ubuntu 14.04.

Thanks to Philip Johnsson that maintains the ppa for Ubuntu:

https://launchpad.net/~philip5

First of all, add his ppa:

sudo add-apt-repository ppa:philip5/extra
sudo apt-get update

Now you can install digikam:

$ sudo apt-get install digikam
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:
 digikam : Depends: kdepim-runtime but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Trying to upgrade and reinstall digikam…

sudo apt-get upgrade
[...]
sudo apt-get install digikam

with no luck. apt-get is not able to resolve the unmet dependencies. In this situations, it’s better to use aptitude instead of apt-get:

$ sudo aptitude install digikam
The following NEW packages will be installed:
  akonadi-backend-mysql{a} akonadi-server{a} consolekit{a} digikam digikam-data{a} docbook-xml{a} docbook-xsl{a} enblend{a} enfuse{a} ffmpegthumbs{a} freeglut3{a} hugin{a} hugin-data{a} hugin-tools{a} 
  icoutils{a} kate-data{a} katepart{a} kde-runtime{a} kde-runtime-data{a} kdelibs-bin{a} kdelibs5-data{a} kdelibs5-plugins{a} kdepim-runtime{a} kdepimlibs-kio-plugins{a} kdoctools{a} kipi-plugins{a} 
  kipi-plugins-common{a} kubuntu-debug-installer{a} libaccounts-qt1{a} libakonadi-calendar4{a} libakonadi-contact4{a} libakonadi-kabc4{a} libakonadi-kcal4{a} libakonadi-kde4{a} libakonadi-kmime4{a} 
  libakonadi-notes4{a} libakonadi-socialutils4{a} libakonadiprotocolinternals1{a} libastro1{a} libattica0.4{a} libbaloocore4{a} libbaloofiles4{a} libbalooxapian4{a} libboost-filesystem1.54.0{a} 
  libboost-program-options1.54.0{a} libboost-regex1.54.0{a} libboost-signals1.54.0{a} libboost-thread1.54.0{a} libdbusmenu-qt2{a} libdlrestrictions1{a} libdmtx0a{a} libepub0{a} libexiv2-14{a} libglew1.10{a} 
  libgps20{a} libgsl0ldbl{a} libimage-exiftool-perl{a} libkabc4{a} libkactivities-bin{a} libkactivities-models1{a} libkactivities6{a} libkalarmcal2{a} libkatepartinterfaces4{a} libkcal4{a} libkcalcore4{a} 
  libkcalutils4{a} libkcmutils4{a} libkdcraw-data{a} libkdcraw23{a} libkde3support4{a} libkdeclarative5{a} libkdecore5{a} libkdesu5{a} libkdeui5{a} libkdewebkit5{a} libkdnssd4{a} libkemoticons4{a} 
  libkexiv2-11{a} libkexiv2-data{a} libkface-data{a} libkface3{a} libkfbapi1{a} libkfile4{a} libkgapi2-2{a} libkgeomap-data{a} libkgeomap2{a} libkholidays4{a} libkhtml5{a} libkidletime4{a} libkimap4{a} 
  libkio5{a} libkipi-data{a} libkipi11{a} libkjsapi4{a} libkjsembed4{a} libkldap4{a} libkmbox4{a} libkmediaplayer4{a} libkmime4{a} libknewstuff3-4{a} libknotifyconfig4{a} libkntlm4{a} libkolab0{a} 
  libkolabxml1{a} libkparts4{a} libkpimidentities4{a} libkpimtextedit4{a} libkpimutils4{a} libkpty4{a} libkqoauth0{a} libkresources4{a} libkrosscore4{a} libksane-data{a} libksane0{a} libktexteditor4{a} 
  libkubuntu0{a} libkvkontakte1{a} libkxmlrpcclient4{a} liblensfun-data{a} liblensfun0{a} libmailtransport4{a} libmarblewidget18{a} libmediawiki1{a} libmicroblog4{a} libnepomuk4{a} libnepomukcleaner4{a} 
  libnepomukcore4abi1{a} libnepomukquery4a{a} libnepomukutils4{a} libntrack-qt4-1{a} libntrack0{a} libopencv-photo2.4{a} libpam-ck-connector{a} libpano13-2{a} libpano13-bin{a} libpgf6{a} libphonon4{a} 
  libplasma3{a} libpolkit-qt-1-1{a} libpoppler-qt4-4{a} libprison0{a} libqapt2{a} libqapt2-runtime{a} libqca2{a} libqextserialport1{a} libqjson0{a} libqmobipocket1{a} libqrencode3{a} libqt4-designer{a} 
  libqt4-qt3support{a} libqt4-svg{a} libqtglib-2.0-0{a} libqtgstreamer-0.10-0{a} libqtgstreamerutils-0.10-0{a} libqtlocation1{a} libqtsolutions-soap-head1{a} libqtwebkit4{a} libquazip0{a} libraw10{a} 
  libshp1{a} libsignon-qt1{a} libsolid4{a} libsoprano4{a} libsqlite0{a} libstreamanalyzer0{a} libstreams0{a} libthreadweaver4{a} libvigraimpex5{a} libvirtodbc0{a} libwlocate0{a} libzthread-2.3-2{a} 
  marble-data{a} marble-plugins{a} mysql-client-core-5.5{a} mysql-server-core-5.5{a} nepomuk-core-data{a} nepomuk-core-runtime{a} ntrack-module-libnl-0{a} oxygen-icon-theme{a} phonon{a} 
  phonon-backend-gstreamer{a} phonon-backend-gstreamer-common{a} phonon-backend-gstreamer1.0{a} plasma-scriptengine-javascript{a} qapt-batch{a} sgml-data{a} shared-desktop-ontologies{a} soprano-daemon{a} 
  virtuoso-minimal{a} virtuoso-opensource-6.1-bin{a} virtuoso-opensource-6.1-common{a} 
0 packages upgraded, 191 newly installed, 0 to remove and 5 not upgraded.
Need to get 26.0 MB/157 MB of archives. After unpacking 516 MB will be used.
The following packages have unmet dependencies:
 mysql-server-core-5.6 : Breaks: mysql-server-core-5.5 but 5.5.46-0ubuntu0.14.04.2 is to be installed.
 mysql-client-core-5.6 : Breaks: mysql-client-core-5.5 but 5.5.46-0ubuntu0.14.04.2 is to be installed.
The following actions will resolve these dependencies:

     Remove the following packages:
1)     mysql-client-5.6            
2)     mysql-client-core-5.6       
3)     mysql-server-5.6            
4)     mysql-server-core-5.6       



Accept this solution? [Y/n/q/?] 
The following NEW packages will be installed:
  akonadi-backend-mysql{a} akonadi-server{a} consolekit{a} digikam digikam-data{a} docbook-xml{a} docbook-xsl{a} enblend{a} enfuse{a} ffmpegthumbs{a} freeglut3{a} hugin{a} hugin-data{a} hugin-tools{a} 
  icoutils{a} kate-data{a} katepart{a} kde-runtime{a} kde-runtime-data{a} kdelibs-bin{a} kdelibs5-data{a} kdelibs5-plugins{a} kdepim-runtime{a} kdepimlibs-kio-plugins{a} kdoctools{a} kipi-plugins{a} 
  kipi-plugins-common{a} kubuntu-debug-installer{a} libaccounts-qt1{a} libakonadi-calendar4{a} libakonadi-contact4{a} libakonadi-kabc4{a} libakonadi-kcal4{a} libakonadi-kde4{a} libakonadi-kmime4{a} 
  libakonadi-notes4{a} libakonadi-socialutils4{a} libakonadiprotocolinternals1{a} libastro1{a} libattica0.4{a} libbaloocore4{a} libbaloofiles4{a} libbalooxapian4{a} libboost-filesystem1.54.0{a} 
  libboost-program-options1.54.0{a} libboost-regex1.54.0{a} libboost-signals1.54.0{a} libboost-thread1.54.0{a} libdbusmenu-qt2{a} libdlrestrictions1{a} libdmtx0a{a} libepub0{a} libexiv2-14{a} libglew1.10{a} 
  libgps20{a} libgsl0ldbl{a} libimage-exiftool-perl{a} libkabc4{a} libkactivities-bin{a} libkactivities-models1{a} libkactivities6{a} libkalarmcal2{a} libkatepartinterfaces4{a} libkcal4{a} libkcalcore4{a} 
  libkcalutils4{a} libkcmutils4{a} libkdcraw-data{a} libkdcraw23{a} libkde3support4{a} libkdeclarative5{a} libkdecore5{a} libkdesu5{a} libkdeui5{a} libkdewebkit5{a} libkdnssd4{a} libkemoticons4{a} 
  libkexiv2-11{a} libkexiv2-data{a} libkface-data{a} libkface3{a} libkfbapi1{a} libkfile4{a} libkgapi2-2{a} libkgeomap-data{a} libkgeomap2{a} libkholidays4{a} libkhtml5{a} libkidletime4{a} libkimap4{a} 
  libkio5{a} libkipi-data{a} libkipi11{a} libkjsapi4{a} libkjsembed4{a} libkldap4{a} libkmbox4{a} libkmediaplayer4{a} libkmime4{a} libknewstuff3-4{a} libknotifyconfig4{a} libkntlm4{a} libkolab0{a} 
  libkolabxml1{a} libkparts4{a} libkpimidentities4{a} libkpimtextedit4{a} libkpimutils4{a} libkpty4{a} libkqoauth0{a} libkresources4{a} libkrosscore4{a} libksane-data{a} libksane0{a} libktexteditor4{a} 
  libkubuntu0{a} libkvkontakte1{a} libkxmlrpcclient4{a} liblensfun-data{a} liblensfun0{a} libmailtransport4{a} libmarblewidget18{a} libmediawiki1{a} libmicroblog4{a} libnepomuk4{a} libnepomukcleaner4{a} 
  libnepomukcore4abi1{a} libnepomukquery4a{a} libnepomukutils4{a} libntrack-qt4-1{a} libntrack0{a} libopencv-photo2.4{a} libpam-ck-connector{a} libpano13-2{a} libpano13-bin{a} libpgf6{a} libphonon4{a} 
  libplasma3{a} libpolkit-qt-1-1{a} libpoppler-qt4-4{a} libprison0{a} libqapt2{a} libqapt2-runtime{a} libqca2{a} libqextserialport1{a} libqjson0{a} libqmobipocket1{a} libqrencode3{a} libqt4-designer{a} 
  libqt4-qt3support{a} libqt4-svg{a} libqtglib-2.0-0{a} libqtgstreamer-0.10-0{a} libqtgstreamerutils-0.10-0{a} libqtlocation1{a} libqtsolutions-soap-head1{a} libqtwebkit4{a} libquazip0{a} libraw10{a} 
  libshp1{a} libsignon-qt1{a} libsolid4{a} libsoprano4{a} libsqlite0{a} libstreamanalyzer0{a} libstreams0{a} libthreadweaver4{a} libvigraimpex5{a} libvirtodbc0{a} libwlocate0{a} libzthread-2.3-2{a} 
  marble-data{a} marble-plugins{a} mysql-client-core-5.5{a} mysql-server-core-5.5{a} nepomuk-core-data{a} nepomuk-core-runtime{a} ntrack-module-libnl-0{a} oxygen-icon-theme{a} phonon{a} 
  phonon-backend-gstreamer{a} phonon-backend-gstreamer-common{a} phonon-backend-gstreamer1.0{a} plasma-scriptengine-javascript{a} qapt-batch{a} sgml-data{a} shared-desktop-ontologies{a} soprano-daemon{a} 
  virtuoso-minimal{a} virtuoso-opensource-6.1-bin{a} virtuoso-opensource-6.1-common{a} 
The following packages will be REMOVED:
  mysql-client-5.6{a} mysql-client-core-5.6{a} mysql-server-5.6{a} mysql-server-core-5.6{a} 
0 packages upgraded, 191 newly installed, 4 to remove and 5 not upgraded.
Need to get 26.0 MB/157 MB of archives. After unpacking 357 MB will be used.
Do you want to continue? [Y/n/?] 

And I finally got digikam 4.14 installed on my system.

Now, enjoy and leave any comments below.

Advertisements
Categories: digikam, linux, ubuntu Tags: ,

Apache file negotiation error: Negotiation: discovered file(s) matching request: /var/www/mysite/mypage (None could be negotiated).

December 4, 2015 1 comment

I rescued this post from my Drafts, I forgot to post it on time! Here is the original post.

Today I’ve been struggling with an annoying message in Apache’s error log:


[Wed Oct 02 19:18:36 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.9-4ubuntu2.3 configured -- resuming normal operations
[Wed Oct 02 19:18:43 2013] [error] [client 127.0.0.1] Negotiation: discovered file(s) matching request: /var/www/mysite/view (None could be negotiated).
[Wed Oct 02 19:18:43 2013] [error] [client 127.0.0.1] Negotiation: discovered file(s) matching request: /var/www/mysite/404 (None could be negotiated).

I have two Ubuntu boxes, one with Ubuntu 12.04 LTS 64 bits  and another with Ubuntu 13.04 64 bits recently installed. I usually export projects from one box to another, and when I imported the project to my Ubuntu 13.04 box I got this problem. The website works fine in my 12.04 machine, so, I pressumed it’s an Apache configuration issue between my two boxes.

I want to redirect http://www.mysite.local/home to http://www.mysite.local/view.php?page=home.

My .htaccess works right on the other machine, so I’ve checked for mod_rewrite status and it’s also enabled in the 13.04 box.

This is my VirtualHost :


<Directory /var/www/myotragus.net>
 Options Indexes FollowSymLinks MultiViews
 AllowOverride All
 Order allow,deny
 allow from all
 </Directory>

I adjusted the RewriteLogLevel to 9 but I can’t understand the final redirection from view to -> view:


127.0.0.1 - - [02/Oct/2013:19:00:54 +0200] [www.mysite.local/sid#7f10f7002670][rid#7f10f143c880/initial/redir#3] (2) [perdir /var/www/mysite/] rewrite 'view' -> 'view?page=view'

After googling a while, I tried different things, but none worked:

  • Disabling Multiviews in my VirtualHost did’nt worked
  • Disabling mod_negotiation neither worked for me.

Finally, I found this post at serverfault.com that hit the nail on the head: I have to edit the /etc/apache2/mods-available/mime.conf to add this line:

AddType application/x-httpd-php .php

As Lorenzo said in his answer, the negotiation was failing because mod_negotiation only looks for known file types.

Just restarted apache and all worked again as intended.

Please, leave your comments below.

Categories: apache, linux, php, ubuntu Tags: ,

Use different color for root terminal on Linux

December 4, 2015 Leave a comment

Looking for a way to distinguish the different terminals i usually have opened, I found this post:

http://lifehacker.com/5195951/use-a-different-color-for-the-root-shell-prompt

It just changes the prompt color, red if you’re root, adding this line at the end of /root/.bashrc:

PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

and green for normal users, adding this to your ~/.bashrc

PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

and restarting the terminals.

Now it’s easier to know if you’re root or not!

Please, feel free to leave your comments

Categories: linux, ubuntu Tags: ,

Error when creating oracle 11gR2 database with dbca: ORA-21561: OID generation failed

September 11, 2013 2 comments

I’m creating a new Oracle 11g release 2 database on Red Hat Enterprise Linux Server release 6.1 using the Database Configuration Assistant (dbca).

When I’ve finished all the configuration steps, create a database with dbca and I get this error:


$ dbca

ORA-21561: OID generation failed

The error is in the /etc/hosts file, as this is a virtual machine generated from a template (we’re using VMWare) that we reuse to create new virtual database machines.

I’ve to assign the correct IP and now the database creation is successful.

Categories: linux, oracle Tags:

Errors starting Oracle netca or dbca in Linux

September 2, 2013 6 comments

I’m configuring a new database on a recently created VMWare virtual server.

When I try to launch netca (or dbca, or whatever else), I get this error:


[oracle@sxxx admin]$ netca
 java.lang.NoClassDefFoundError: oracle/sysman/oii/oiil/OiilNativeException
 at oracle.net.ca.NetCAUtils.getOracleBase(NetCAUtils.java:69)
 at oracle.net.ca.NetCALogger.initOracleParameters(NetCALogger.java:218)
 at oracle.net.ca.NetCALogger.initLogger(NetCALogger.java:130)
 at oracle.net.ca.NetCA.main(NetCA.java:427)

Error: oracle/sysman/oii/oiil/OiilNativeException
 Oracle Net Services configuration failed. The exit code is 1

 [oracle@sxxx admin]$ dbca
 Exception in thread "main" java.lang.NoClassDefFoundError: oracle/sysman/oii/oiil/OiilNativeException
 at oracle.sysman.assistants.util.attributes.InitParamAttributes.initialize(InitParamAttributes.java:571)
 at oracle.sysman.assistants.util.attributes.InitParamAttributes.<init>(InitParamAttributes.java:541)
 at oracle.sysman.assistants.util.step.StepContext.<init>(StepContext.java:325)
 at oracle.sysman.assistants.dbca.backend.Host.<init>(Host.java:823)
 at oracle.sysman.assistants.dbca.ui.UIHost.<init>(UIHost.java:258)
 at oracle.sysman.assistants.dbca.ui.InteractiveHost.<init>(InteractiveHost.java:54)
 at oracle.sysman.assistants.dbca.Dbca.getHost(Dbca.java:164)
 at oracle.sysman.assistants.dbca.Dbca.execute(Dbca.java:112)
 at oracle.sysman.assistants.dbca.Dbca.main(Dbca.java:180)
 

First of all, I reviewed all my environment variables, then launched xclock to check that my X are well configured, and all that stuff was ok.

The problem is that the filesystem where the oracle binaries were installed were moved to another filesystem by our sysadmins, and the permissions of the entire oracle folder and subfolders were changed to root:root.Simply revert back permissions to oracle:dba solved this silly error.

Never trust on your sysadmins ;-D

Categories: linux, oracle Tags: ,

Install Lotus Notes 9 on Ubuntu 13.04 64 bits

June 21, 2013 12 comments

First of all, try the installation process specified in the section “Modify the deb package and install again”. This post is the full log of my installation, but I have had to reinstall again following the steps of this section because the system became unstable.

Lets try to install the new Lotus Notes 9 in my fresh installation of Ubuntu 13.04 64 bits.

First of all, a quick view of Usable software backlog blog, a must of every Lotus Notes on Ubuntu user: http://usablesoftware.wordpress.com/2013/03/21/quick-guide-installing-notes-9-on-ubuntu-13-04-beta1-64bit/

I tried to install and I get a lot of dependencies (intentionally suppressed some lines of the output):


$ sudo apt-get install ia32-libs libgnomeprint2.2-0:i386 libg  nomeprintui2.2-0:i386 libgnomevfs2-bin:i386 libgnome2-0:i386 libgnomeui-0:i386 libjpeg62:i386

S'instaŀlaran els següents paquets extres:
bluez-alsa:i386 esound-common gcc-4.7-base:i386 glib-networking:i386 gstreamer0.10-plugins-base:i386
gstreamer0.10-plugins-good:i386 gstreamer0.10-x:i386 gtk2-engines:i386 gtk2-engines-murrine:i386
[...]
libxt6 libxt6:i386 libxtst6 libxtst6:i386 libxv1 libxv1:i386 libxxf86vm1 libxxf86vm1:i386 mysql-common
odbcinst odbcinst1debian2 odbcinst1debian2:i386 xaw3dg:i386 zlib1g:i386
Paquets suggerits:
murrine-themes:i386 kde-config-gtk-style:i386 libpam-ldap:i386 libpam-winbind:i386 libnss-ldap:i386 nas:i386
[...]
libsasl2-modules-sql:i386 libsasl2-modules-gssapi-mit:i386 libsasl2-modules-gssapi-heimdal:i386 speex:i386
Paquets recomanats:
libtxc-dxtn0:i386 xml-core:i386
Es SUPRIMIRAN els paquets següents:
libgnomecups1.0-1 libgnomeprint2.2-0
S'instaŀlaran els paquets NOUS següents:
bluez-alsa:i386 esound-common gcc-4.7-base:i386 glib-networking:i386 gstreamer0.10-plugins-base:i386
[...]
libxt6:i386 libxtst6:i386 libxv1:i386 libxxf86vm1:i386 mysql-common odbcinst odbcinst1debian2
odbcinst1debian2:i386 xaw3dg:i386 zlib1g:i386
S'actualitzaran els paquets següents:
libasound2 libcupsfilters1 libdbus-1-3 libegl1-mesa libegl1-mesa-drivers libgl1-mesa-dri libgl1-mesa-glx
libglapi-mesa libgnutls26 libgudev-1.0-0 libtiff5 libudev1 libx11-6 libx11-xcb1 libxcb-dri2-0 libxcb-glx0
libxcb-render0 libxcb-shm0 libxcb1 libxcursor1 libxext6 libxfixes3 libxi6 libxinerama1 libxml2 libxp6
libxrandr2 libxrender1 libxt6 libxtst6 libxv1 libxxf86vm1
32 actualitzats, 281 nous a instaŀlar, 2 a suprimir i 79 no actualitzats.
S'ha d'obtenir 93,8 MB d'arxius.
Després d'aquesta operació s'empraran 292 MB d'espai en disc addicional.
Voleu continuar [S/n]?

Once installed this bunch of packages, I try to install notes with –force-depends option, as suggested Charlie in the comments (I can see unsatisfied dependencies on some essential packages, as grep, see below for details) :


$ sudo dpkg --force-depends -i ibm-notes-9.0.i586.deb

S'està preparant per a reemplaçar ibm-notes 9.0-20130309.0942 (emprant ibm-notes-9.0.i586.deb)…
S'està desempaquetant el reemplaçament de ibm-notes…

dpkg: ibm-notes: problemes de dependències, però es configurarà igualment tal i com heu demanat:
ibm-notes depèn de gdb.
ibm-notes depèn de grep.
ibm-notes depèn de libcupsys2.
ibm-notes depèn de libgconf2-4.
ibm-notes depèn de libgnome-desktop-2 | libgnome-desktop-2-7 | libgnome-desktop-2-11 | libgnome-desktop-2-17 | libgnome-desktop-3-2.
ibm-notes depèn de libpam0g.
ibm-notes depèn de libxkbfile1.

S'està configurant ibm-notes (9.0-20130309.0942)…
S'estan processant els activadors per a bamfdaemon…
Rebuilding /usr/share/applications/bamf-2.index...
S'estan processant els activadors per a desktop-file-utils…
S'estan processant els activadors per a gnome-menus…

And it works fine, with no extra karmic libs as with other installations (https://myotragusbalearicus.wordpress.com/2012/01/12/install-lotus-notes-8-5-3-on-ubuntu-11-10-64-bits-with-gnome3/).

Collateral damages

When I try to install other packages, I’m getting errors. When I try to fix them, I get this error (slightly different from Usable Software’s blog):


$ sudo apt-get install gimp
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
gimp : Depends: libgimp2.0 (>= 2.8.4) but it is not going to be installed
Depends: libgimp2.0 (<= 2.8.4-z) but it is not going to be installed
Depends: gimp-data (>= 2.8.4) but it is not going to be installed
Depends: gimp-data (<= 2.8.4-z) but it is not going to be installed
Depends: libbabl-0.1-0 (>= 0.1.10) but it is not going to be installed
Depends: libgegl-0.2-0 (>= 0.2.0) but it is not going to be installed
Depends: libwebkitgtk-1.0-0 (>= 1.3.10) but it is not going to be installed
ibm-notes:i386 : Depends: gdb:i386 but it is not going to be installed
Depends: grep:i386 but it is not going to be installed
Depends: libcupsys2:i386 but it is not installable
Depends: libgconf2-4:i386 but it is not going to be installed
Depends: libgnome-desktop-2:i386 but it is not installable or
libgnome-desktop-2-7:i386 but it is not installable or
libgnome-desktop-2-11:i386 but it is not installable or
libgnome-desktop-2-17:i386 but it is not going to be installed or
libgnome-desktop-3-2:i386 but it is not installable
Depends: libpam0g:i386 but it is not going to be installed
Depends: libxkbfile1:i386 but it is not going to be installed
Recommends: ttf-xfree86-nonfree:i386 but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

And If I try the suggested -f (–fix-broken) option, I get into panic mode:


$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
gdb:i386 libpython2.7:i386 libpython2.7-minimal:i386 libpython2.7-stdlib:i386 libpython3-stdlib:i386 libpython3.3-minimal:i386
libpython3.3-stdlib:i386 libreadline6:i386
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
gdb:i386 grep:i386 libpython2.7:i386 libpython2.7-minimal:i386 libpython2.7-stdlib:i386 libpython3-stdlib:i386
libpython3.3-minimal:i386 libpython3.3-stdlib:i386 libreadline6:i386
Suggested packages:
gdb-doc:i386 gdbserver:i386
The following packages will be REMOVED:
gdb grep ibm-notes:i386
The following NEW packages will be installed:
gdb:i386 grep:i386 libpython2.7:i386 libpython2.7-minimal:i386 libpython2.7-stdlib:i386 libpython3-stdlib:i386
libpython3.3-minimal:i386 libpython3.3-stdlib:i386 libreadline6:i386
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
grep
0 upgraded, 9 newly installed, 3 to remove and 87 not upgraded.
Need to get 9956 kB of archives.
After this operation, 829 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
?] no
Abort.

So, I decided to remove and purge lotus-notes package and fix packages again (now it’s ok, 0 packages to remove):


$ sudo dpkg --purge ibm-notes:i386
(Reading database ... 181976 files and directories currently installed.)
Removing ibm-notes ...
Purging configuration files for ibm-notes ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...

$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 87 not upgraded.

Modify the deb package and install again

For me this has worked. So If you have the same scenario as me (Lotus Notes 9.0 and Ubuntu 13.04 64 bits), it’s preferable to modify the deb package and install with no dependencies (see the Collateral damages section). Maybe you’ll have to install some dependencies if it does not work for you (I already installed it at the begginning of the post, but maybe some of them are unnecessary).

First of all, modify the dependencies of the ibm-notes-9.0.i586.deb package (see http://usablesoftware.wordpress.com/2012/05/04/install-lotus-notes-8-5-3-on-ubuntu-12-04-64bit/ for instructions on unpacking and repacking the deb package):

  • Extract the deb file
  • Go to DEBIAN folder
  • Edit the control file
  • Clear the pre-depends and depends lines:
Pre-Depends: libgnomeprint2.2-0, libgnomeprintui2.2-0
Depends: gdb, coreutils, unzip, bash, procps, grep, sed, libart-2.0-2, libasound2, libatk1.0-0, libbonobo2-0, libbonoboui2-0, libc6, libcupsys2, libfontconfig1, libfreetype6, libgcc1, libgconf2-4, libgtk2.0-0, libglib2.0-0, libgnome2-0, libgnomecanvas2-0, libgnome-desktop-2 | libgnome-desktop-2-7 | libgnome-desktop-2-11 | libgnome-desktop-2-17 | libgnome-desktop-3-2, libgnomeui-0, libgnomevfs2-0, libglib2.0-0, libice6, libjpeg62, liborbit2, libpam0g, libpango1.0-0, libpng12-0, libpopt0, libsm6, libstdc++6, libx11-6, libxcursor1, libxext6, libxft2, libxi6, libxkbfile1, libxml2, libxp6, libxrender1, libxss1, libxt6, libxtst6, libz1

Change it for:

Pre-Depends:
Depends:
  • Now go to the root folder again rename the original deb file.
  • Generate the deb package again (install the package dpkg-dev if you don’t have the dpkg-deb command) and reinstall it(now you don’t need to force dependencies):

$ dpkg-deb -b ibm-notes-9.0.i586
dpkg-deb: building package `ibm-notes' in `ibm-notes-9.0.i586.deb'.
$ chmod +x ibm-notes-9.0.i586.deb

$ sudo dpkg -i ibm-notes-9.0.i586.deb
Selecting previously unselected package ibm-notes.
(Reading database ... 161789 files and directories currently installed.)
Unpacking ibm-notes (from ibm-notes-9.0.i586.deb) ...
Setting up ibm-notes (9.0-20130309.0942) ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...

And now you can run Lotus Notes 9 Social Edition:

Lotus Notes 9 Social Edition

Lotus Notes 9

Compress a folder with tar

February 15, 2013 1 comment

To archive and compress a folder with tar use this command:


$ tar -czvf folder.tar.gz folder

Be careful with the parameters order: tar -czvf is not the same as tar -cvfz. The fist one is ok, but the second one ends with an error:

$ tar -cvfz folder.tar.gz folder
tar: folder.tar.gz: Cannot stat: No such file or directory
folder/
folder/file1.txt
folder/file2.txt
folder/file3.txt
tar: Exiting with failure status due to previous errors

An ls will show a z file. The reason is that the -f parameter takes the next argument as the filename to archive, thus the z file in our folder. So you have to use the tar -czvf syntax.

Categories: linux Tags: , ,