Upgrade Ubuntu Server 12.04 LTS to 14..04 LTS

Asked by Onno

I recently upgraded my server from 12.04 to 14.04 using do-release-upgrade. Following instructions I could find etc.

Per my experience such a upgrade path should be recommended against. Also it would be better to remove the notice to upgrade in the console. It is sort of suggestive of it working. If we want to put this option there it would be better to put a very big disclaimer that upgrade could and will mostly result in issues and a require a fresh install of the server rather than something that resembles an upgrade.

The first issue I noticed is that the upgrade purged data in my OpenLDAP directory and left in a non working corrupt condition.

When trying to remove OpenLDAP to do a fresh install I noticed that the system configuration got corrupted also as a result of the upgrade.

When I do for example
 sudo apt-get -y remove slapd

I see messages
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:

So Ubuntu server no longers deinstalls because of unmet dependencies. These depedencies cannot be corrected anymore

There is a wealth of error messages. Ubuntu even displays a message that error reports are no longer written because of the max been reached.

So I now feat the big fear that i have to say bye to my Ubuntu server as I can no longer do anything with it. Packages won't install or deinstall because of dependencies and dependencies can no longer be met because of errors.

Is there a way to recover from the upgrade? Or does it mean a complete reinstall of my server which represents many, many, many hours of work?

:~$ 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:
  linux-image-3.2.0-55-generic linux-image-3.2.0-60-generic libkpathsea5 libpthread-stubs0 linux-image-3.2.0-37-generic latex-fonts-thai-tlwg
  linux-image-3.2.0-58-generic linux-image-3.2.0-63-generic linux-image-3.2.0-45-generic thailatex linux-image-3.2.0-48-generic linux-image-3.2.0-53-generic
  linux-image-3.2.0-69-generic linux-image-3.2.0-40-generic linux-image-3.2.0-56-generic linux-image-3.2.0-61-generic libgdu0 linux-image-3.2.0-43-generic
  linux-image-3.2.0-38-generic texlive-xetex linux-image-3.2.0-64-generic linux-image-3.2.0-59-generic libtasn1-3-dev linux-image-3.2.0-51-generic
  linux-image-3.2.0-67-generic linux-image-3.2.0-72-generic libdconf0 linux-image-3.2.0-54-generic openjdk-7-jre-lib linux-image-3.2.0-41-generic
  linux-image-3.2.0-57-generic linux-image-3.2.0-39-generic linux-image-3.2.0-44-generic linux-image-3.2.0-70-generic linux-image-3.2.0-65-generic
  linux-image-3.2.0-52-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  texlive-base thailatex
Suggested packages:
  perl-tk
The following packages will be upgraded:
  texlive-base thailatex
2 upgraded, 0 newly installed, 0 to remove and 724 not upgraded.
27 not fully installed or removed.
Need to get 0 B/16.2 MB of archives.
After this operation, 16.6 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
  texlive-base:amd64 conflicts with thailatex:amd64
dpkg: dependency problems prevent configuration of texlive-base:
 texlive-base depends on texlive-doc-base (>= 2009-1); however:
  Package texlive-doc-base is not installed.
 texlive-base depends on texlive-common (>= 2009-1); however:
  Package texlive-common is not installed.
 texlive-binaries (2013.20130729.30972-2build3) breaks texlive-base (<< 2013) and is installed.
  Version of texlive-base to be configured is 2009-15.
 libkpathsea6 (2013.20130729.30972-2build3) breaks texlive-base (<< 2013) and is installed.
  Version of texlive-base to be configured is 2009-15.

dpkg: error processing package texlive-base (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-lang-other:
 texlive-lang-other depends on texlive-base (>= 2013.20130512); however:
  Version of texlive-base on system is 2009-15.

dpkg: error processing package texlive-lang-other (--configure):
 dependency problems - leaving unconfigured
Setting up slapd (2.4.31-1+nmu2ubuntu8) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          No apport report written because the error message indicates its a followup error from a previous failure.
                                                   Backing up /etc/ldap/slapd.d in /var/backups/slapd-2.4.28-1.1ubuntu4.2... done.
  Moving old database directories to /var/backups:
  Loading from /var/backups/slapd-2.4.28-1.1ubuntu4.2:
 * Starting OpenLDAP slapd [ OK ]
dpkg: dependency problems prevent configuration of texlive-latex-base:
 texlive-latex-base depends on texlive-base (>= 2013.20130512); however:
  Version of texlive-base on system is 2009-15.

dpkg: error processing package texlive-latex-base (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          dpkg: dependency problems prevent configuration of texlive-font-utils:
 texlive-font-utils depends on texlive-base (>= 2013.20130512); however:
  Version of texlive-base on system is 2009-15.

dpkg: error processing package texlive-font-utils (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of latex-cjk-common:
 latex-cjk-common depends on texlive-latex-base; however:
  Package texlive-latex-base is not configured yet.
 latex-cjk-common depends on texlive-font-utils (>= 2007.dfsg.2-1); however:
  Package texlive-font-utils is not configured yet.

No apport report written because MaxReports is reached already
                                                              dpkg: error processing package latex-cjk-common (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of latex-cjk-chinese:
 latex-cjk-chinese depends on latex-cjk-common (= 4.8.3+git20120914-2ubuntu1); however:
  Package latex-cjk-common is not configured yet.

dpkg: error processing package latex-cjk-chinese (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of latex-cjk-japanese:
 latex-cjk-japanese depends on latex-cjk-common (= 4.8.3+git20120914-2ubuntu1); however:
  Package latex-cjk-common is not configured yet.

No apport report written because MaxReports is reached already
                                                              dpkg: error processing package latex-cjk-japanese (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of latex-cjk-korean:
 latex-cjk-korean depends on latex-cjk-common (>= 4.8.3+git20120914-2ubuntu1); however:
  Package latex-cjk-common is not configured yet.

dpkg: error processing package latex-cjk-korean (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              No apport report written because MaxReports is reached already
                                                                                                                            dpkg: dependency problems prevent configuration of latex-cjk-thai:
 latex-cjk-thai depends on latex-cjk-common (>= 4.8.3+git20120914-2ubuntu1); however:
  Package latex-cjk-common is not configured yet.
 latex-cjk-thai depends on texlive-latex-base; however:
  Package texlive-latex-base is not configured yet.
 latex-cjk-thai depends on texlive-lang-other (>= 2013.20130523-1); however:
  Package texlive-lang-other is not configured yet.

dpkg: error processing package latex-cjk-thai (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of latex-cjk-all:
 latex-cjk-all depends on latex-cjk-common (>= 4.8.3+git20120914-2ubuntu1); however:
  Package latex-cjk-common is not configured yet.
 latex-cjk-all depends on latex-cjk-chinese (>= 4.8.3+git20120914-2ubuntu1); however:
  Package latex-cjk-chinese is not configured yet.
 latex-cjk-all depends on latex-cjk-japanese (>= 4.8.3+git20120914-2ubuntu1); however:
  Package latex-cjk-japanese is not configured yet.
 latex-cjk-all depends on latex-cjk-korean (= 4.8.3+git20120914-2ubuntu1); however:
  Package latex-cjk-korean is not configured yet.
 latex-cjk-all depends on latex-cjk-thai (= 4.8.3+git20120914-2ubuntu1); however:
  Package latex-cjk-thai is not configured yet.

dpkg: error processing package latex-cjk-all (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of latex-fonts-thai-tlwg:
 latex-fonts-thai-tlwg depends on texlive-lang-other (>= 2013.20130523-1); however:
  Package texlive-lang-other is not configured yet.

dpkg: error processing package latex-fonts-thai-tlwg (--configure):
 dependency problems - leaving unconfiguredNo apport report written because MaxReports is reached already
                                                                                                         No apport report written because MaxReports is reached already

dpkg: dependency problems prevent configuration of texlive-extra-utils:
 texlive-extra-utils depends on texlive-latex-base (>= 2013.20130512); however:
  Package texlive-latex-base is not configured yet.
 texlive-extra-utils depends on texlive-base (>= 2013.20130512); however:
  Version of texlive-base on system is 2009-15.

dpkg: error processing package texlive-extra-utils (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-generic-recommended:
 texlive-generic-recommended depends on texlive-base (>= 2013.20130512); however:
  Version of texlive-base on system is 2009-15.

dpkg: error processing package texlive-generic-recommended (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              No apport report written because MaxReports is reached already
                                                                                                                            dpkg: dependency problems prevent configuration of texlive-latex-base-doc:
 texlive-latex-base-doc depends on texlive-base (>= 2013.20130512); however:
  Version of texlive-base on system is 2009-15.

dpkg: error processing package texlive-latex-base-doc (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-latex-recommended:
 texlive-latex-recommended depends on texlive-latex-base (>= 2013.20130512); however:
  Package texlive-latex-base is not configured yet.
 texlive-latex-recommended depends on texlive-base (>= 2013.20130512); however:
  Version of texlive-base on system is 2009-15.

dpkg: error processing package texlive-latex-recommended (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-pictures:
 texlive-pictures depends on texlive-base (>= 2013.20130512); however:
  Version of texlive-base on system is 2009-15.
No apport report written because MaxReports is reached already
                                                              No apport report written because MaxReports is reached already

dpkg: error processing package texlive-pictures (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of texlive-latex-extra:
 texlive-latex-extra depends on texlive-base (>= 2013.20130512); however:
  Version of texlive-base on system is 2009-15.
 texlive-latex-extra depends on texlive-latex-recommended (>= 2013.20130512); however:
  Package texlive-latex-recommended is not configured yet.
 texlive-latex-extra depends on texlive-pictures (>= 2013.20130512); however:
  Package texlive-pictures is not configured yet.

dpkg: error processing package texlive-latex-extra (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of texlive-latex-extra-doc:
 texlive-latex-extra-doc depends on texlive-base (>= 2013.20130512); however:
  Version of texlive-base on system is 2009-15.

dpkg: error processing package texlive-latex-extra-doc (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-latex-recommended-doc:
 texlive-latex-recommended-doc depends on texlive-base (>= 2013.20130512); however:
  Version of texlive-base on system is 2009-15.

dpkg: error processing package texlive-latex-recommended-doc (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-luatex:
 texlive-luatex depends on texlive-base (>= 2013.20130512); however:
  Version of texlive-base on system is 2009-15.
No apport report written because MaxReports is reached already
                                                              No apport report written because MaxReports is reached already

dpkg: error processing package texlive-luatex (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-pictures-doc:
 texlive-pictures-doc depends on texlive-base (>= 2013.20130512); however:
  Version of texlive-base on system is 2009-15.

dpkg: error processing package texlive-pictures-doc (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-pstricks:
 texlive-pstricks depends on texlive-base (>= 2013.20130512); however:No apport report written because MaxReports is reached already
                                                                                                                                    No apport report written because MaxReports is reached already

  Version of texlive-base on system is 2009-15.
 texlive-pstricks depends on texlive-generic-recommended (>= 2013.20130512); however:
  Package texlive-generic-recommended is not configured yet.

dpkg: error processing package texlive-pstricks (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of texlive-pstricks-doc:
 texlive-pstricks-doc depends on texlive-base (>= 2013.20130512); however:
  Version of texlive-base on system is 2009-15.

dpkg: error processing package texlive-pstricks-doc (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of tipa:
 tipa depends on texlive-latex-base; however:
  Package texlive-latex-base is not configured yet.

dpkg: error processing package tipa (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-xetex:
No apport report written because MaxReports is reached already
                                                              No apport report written because MaxReports is reached already
                                                                                                                             texlive-xetex depends on texlive-base (>= 2013.20130512); however:
  Version of texlive-base on system is 2009-15.
 texlive-xetex depends on texlive-latex-base (>= 2013.20130512); however:
  Package texlive-latex-base is not configured yet.
 texlive-xetex depends on tipa (>= 2:1.2-2.1); however:
  Package tipa is not configured yet.

dpkg: error processing package texlive-xetex (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of thailatex:
 thailatex depends on texlive-latex-base; however:
  Package texlive-latex-base is not configured yet.
 tex-common (4.04) breaks thailatex (<< 2013) and is installed.
  Version of thailatex to be configured is 0.4.6-3.

dpkg: error processing package thailatex (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              No apport report written because MaxReports is reached already
                                                                                                                            Processing triggers for libc-bin (2.19-0ubuntu6.4) ...
Errors were encountered while processing:
 texlive-base
 texlive-lang-other
 texlive-latex-base
 texlive-font-utils
 latex-cjk-common
 latex-cjk-chinese
 latex-cjk-japanese
 latex-cjk-korean
 latex-cjk-thai
 latex-cjk-all
 latex-fonts-thai-tlwg
 texlive-extra-utils
 texlive-generic-recommended
 texlive-latex-base-doc
 texlive-latex-recommended
 texlive-pictures
 texlive-latex-extra
 texlive-latex-extra-doc
 texlive-latex-recommended-doc
 texlive-luatex
 texlive-pictures-doc
 texlive-pstricks
 texlive-pstricks-doc
 tipa
 texlive-xetex
 thailatex
E: Sub-process /usr/bin/dpkg returned an error code (1)
ostraaten@jupiter:~$

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Onno
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Do you have any PPAs enabled on the server?

Revision history for this message
Onno (ostraaten) said :
#2

My sources.list is
deb http://nl.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://nl.archive.ubuntu.com/ubuntu/ trusty main restricted
deb http://nl.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-src http://nl.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb http://nl.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://nl.archive.ubuntu.com/ubuntu/ trusty universe
deb http://nl.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://nl.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb http://nl.archive.ubuntu.com/ubuntu/ trusty multiverse
deb-src http://nl.archive.ubuntu.com/ubuntu/ trusty multiverse
deb http://nl.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb-src http://nl.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb http://nl.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://nl.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu trusty-security main restricted
deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted
deb http://security.ubuntu.com/ubuntu trusty-security universe
deb-src http://security.ubuntu.com/ubuntu trusty-security universe
deb http://security.ubuntu.com/ubuntu trusty-security multiverse
deb-src http://security.ubuntu.com/ubuntu trusty-security multiverse

Revision history for this message
Onno (ostraaten) said :
#3

Somehow I fixed the problem. On the problem packages I used dpkg --purge for example
sudo dpkg --purge texlive-font-utils
sudo dpkg --purge texlive-generic-recommended
sudo dpkg --purge texlive-lang-other
sudo dpkg --purge texlive-latex-base
sudo dpkg --purge texlive-latex-base-doc
sudo dpkg --purge texlive-latex-extra
sudo dpkg --purge texlive-latex-extra-doc
sudo dpkg --purge texlive-latex-recommended
sudo dpkg --purge texlive-latex-recommended-doc
sudo dpkg --purge texlive-luatex
sudo dpkg --purge texlive-pictures
sudo dpkg --purge texlive-pictures-doc
sudo dpkg --purge texlive-pstricks
sudo dpkg --purge texlive-pstricks-doc

Then I did
udo apt-get clean && sudo apt-get update && sudo apt-get install -f

Now it is fixed for example

$ sudo apt-get -y remove slapd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libslp1 libodbc1 lacheck
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  slapd
0 upgraded, 0 newly installed, 1 to remove and 723 not upgraded.
After this operation, 4,195 kB disk space will be freed.
(Reading database ... 846174 files and directories currently installed.)
Removing slapd (2.4.31-1+nmu2ubuntu8) ...
 * Stopping OpenLDAP slapd [ OK ]
Processing triggers for man-db (2.6.1-2) ...
Processing triggers for libc-bin (2.19-0ubuntu6.4) ...
ostraaten@jupiter:~$ ruby -v
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-linux]

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

I suggest you report a bug