Showing posts with label Bug. Show all posts
Showing posts with label Bug. Show all posts

Could not perform immediate configuration on 'util-linux' - issues during the upgrade from Ubuntu 10.04 to 12.04 (part 3)




Intro


When performing an upgrade of Ubuntu 10.04 to 12.04 I experienced some serious issues with the util-linux package. What's interesting is that I haven't found any official website for this bug. Thanks to some different tips found in the I have managed to bypass those issues anyway. The following steps describe a detailed troubleshooting process both with a solution.


Symptoms


  • During the regular upgrade process, when running the following command:
apt-get dist-upgrade

the following error message is being displayed:

E: Could not perform immediate configuration on 'util-linux'.Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)

Solution


Please, run the following sequence of commands:
  • apt-get install libc6-dev
  • apt-get install util-linux -f -o APT::Immediate-Configure=0
  • apt-get dist-upgrade
  • follow the regular on-screen instructions to accomplish the upgrade process
  • apt-get autoremove
  • reboot


Notes


Issues described in the above posts are not the only ones that I encountered when upgrading my Ubuntu 10.04 servers to 12.04. Please, take a look on the following post descirbing similar issues both with the troubleshooting process and the solution:

Could not perform immediate configuration of 'python-minimal' - Couldn't configure pre-depend multiarch-support for libnih-dbus1 - issues during the upgrade from Ubuntu 10.04 to 12.04 (part 2)



Intro


When performing an upgrade of Ubuntu 10.04 to 12.04 I experienced some serious issues with the python-minimal package that are described in the following bug. What I can only add is that none of the solutions provided there work as there's another issue with the libglib2.0-0 package. Searching for a solution in the Internet results in dozens of blogs written by desperate people that experienced the same issue and had to reinstall their boxes on a new LTS from scratch. I have managed to bypass those issues anyway. The following steps describe a detailed troubleshooting process both with a solution.


Symptoms


  • During the regular upgrade process, when running the following command:
apt-get dist-upgrade

the following error message is being displayed:

E: Could not perform immediate configuration on 'python-minimal'.Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)
  • When running the following command:
apt-get install -o APT::Immediate-Configure=false -f apt python-minimal

as suggested on the following website another error message is being displayed:

The following packages have unmet dependencies.
  libglib2.0-0: Recommends: libglib2.0-data but it is not going to be installed
                Breaks: gvfs (< 1.8) but 1.6.1-0ubuntu1build1 is to be installed
E: Broken packages

Solution


Please, run the following sequence of commands:
  • apt-get install libglib2.0-dev - install the development version of the package
  • apt-get upgrade - we need to run that one more time as the libglib2.0-dev package makes some significant changes to the system
  • apt-get install -o APT::Immediate-Configure=false -f apt python-minimal - it should work without any issues this time
  • apt-get dist-upgrade
  • follow the regular on-screen instructions to accomplish the upgrade process
  • apt-get autoremove
  • reboot


Notes


Issues described in the above posts are not the only ones that I encountered when upgrading my Ubuntu 10.04 servers to 12.04. Please, take a look on the following post descirbing similar issues both with the troubleshooting process and the solution:

Could not perform immediate configuration of 'python-minimal' - Couldn't configure pre-depend multiarch-support for libnih-dbus1 - issues during the upgrade from Ubuntu 10.04 to 12.04 (part 1)


Intro


When performing an upgrade of Ubuntu 10.04 to 12.04 I experienced some serious issues with the python-minimal package that are described in the following bug. What I can only add is that none of the solutions provided there work as there's another issue with the libnih-dbus1 package. Searching for a solution in the Internet results in dozens of blogs written by desperate people that experienced the same issue and had to reinstall their boxes on a new LTS from scratch. I have managed to bypass those issues anyway. The following steps describe a detailed troubleshooting process both with a solution.


Symptoms


  • During the regular upgrade process, when running the following command:
apt-get dist-upgrade

the following error message is being displayed:

E: Could not perform immediate configuration on 'python-minimal'.Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)
  • When running the following command:
apt-get install -o APT::Immediate-Configure=false -f apt python-minimal

as suggested on the following website another error message is being displayed:

E: Couldn't configure pre-depend multiarch-support for libnih-dbus1, probably a dependency cycle.

Solution


Please, run the following sequence of commands:
  • uname -r - you'll need to know your kernel version, e.g.:
3.2.0-23-generic-pae
  • apt-get remove libnih-dbus1 - please, note down all the packages that are going to be removed, except of any linux-image packages e.g.:
The following packages will be REMOVED:
  apache2 apache2-mpm-worker apache2.2-common bsd-mailx console-setup cron dkms dmsetup e2fsprogs eject grub grub-common hostname ifupdown
  initramfs-tools initscripts kbd libc6-i686 libdevmapper1.02.1 libnih-dbus1 libsasl2-modules logrotate module-init-tools mountall nagios-plugins
  nagios-plugins-basic nagios-plugins-standard netbase ntp ntpdate open-vm-dkms openssh-server plymouth postfix procps udev upstart ureadahead
  util-linux
  • Yes, do as I say!
  • apt-get install ubuntu-minimal
  • apt-get install [list of packages from point 2] - install back automatically uninstalled packages from point 2
  • answer N for any of the questions regarding configuration files, e.g.:
Configuration file `/etc/ntp.conf'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** ntp.conf (Y/I/N/O/D/Z) [default=N] ? N
  • apt-get install linux-image-[version from point 1] - install Linux kernel (sometimes I need to rung that command twice)
  • apt-get install -o APT::Immediate-Configure=false -f apt python-minimal
  • apt-get dist-upgrade
  • follow the regular on-screen instructions to accomplish the upgrade process
  • apt-get autoremove
  • reboot

Notes


Issues described in the above posts are not the only ones that I encountered when upgrading my Ubuntu 10.04 servers to 12.04. Please, take a look on the following post describing similar issues both with the troubleshooting process and the solution:

No server suitable for synchronization found - ntp 4.2.6.p2 issues


Intro



I was experiencing some strange issues with one of my Debian boxes when trying to set up NTP client to synchronize against one of the Domain Controllers in my Active Directory infrastructure. After long time spent on troubleshooting and looking for a solution in the Internet I have finally found that it's a bug in ntp Debian package version 4.2.6.p2. To sum up, my infrastructure consists of the following boxes:
  • NTP client: Debian 6.0 i386
  • NTP server: Windows Server 2012 amd64 

The following steps describe a detailed troubleshooting process both with a solution. 

Symptoms


  • When running ntpdate command in the regular mode the following output is thrown:
server:~# ntpdate 1.2.3.4
10 Apr 06:19:02 ntpdate[1004]: no server suitable for synchronization found
  • When running ntpdate command in the debug mode the following output is thrown:
server:~# ntpdate -d 1.2.3.4
10 Apr 06:19:55 ntpdate[1005]: ntpdate 4.2.6p2@1.2194-o Sun Oct 17 13:45:14 UTC 2010 (1)
transmit(1.2.3.4)
receive(1.2.3.4)
transmit(1.2.3.4)
receive(1.2.3.4)
transmit(1.2.3.4)
receive(1.2.3.4)
transmit(1.2.3.4)
receive(1.2.3.4)
transmit(1.2.3.4)
1.2.3.4: Server dropped: no data
server 1.2.3.4, port 123
stratum 4, precision -6, leap 00, trust 000
refid [1.2.3.4], delay 0.00000, dispersion 64.00000
transmitted 4, in filter 4
reference time:    d50f73c8.1f5e08c9  Wed, Apr 10 2013  6:14:48.122
originate timestamp: d50f7501.3b86fe8c  Wed, Apr 10 2013  6:20:01.232
transmit timestamp:  d50f7501.3a373fb2  Wed, Apr 10 2013  6:20:01.227
filter delay:  0.00000  0.00000  0.00000  0.00000 
         0.00000  0.00000  0.00000  0.00000 
filter offset: 0.000000 0.000000 0.000000 0.000000
         0.000000 0.000000 0.000000 0.000000
delay 0.00000, dispersion 64.00000
offset 0.000000

10 Apr 06:20:03 ntpdate[1005]: no server suitable for synchronization found

Troubleshooting


  • Check the version of ntp package installed by running the following command:
server:~# dpkg-query -l ntp
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                            Version                         Description
+++-===============================-===============================-==============================================================================
ii  ntp                             1:4.2.6.p2+dfsg-1+b1            Network Time Protocol daemon and utility programs
  • If the ntp version is 4.2.6.p2 then you're most probably affected by the bug mentioned above.

Solution


What's the most frustrating here is that there's no newer version of ntp available in stable repository. I've checked that and it's not even downloadable from the wheezy-backports repository while the wheezy release utilizes ntp version 4.2.6.p5 (details here). The only way for me to fix the issue was to upgrade from squeeze into wheezy then. 

Debian upgrade itself is beyond the scope of this post. There are a lot of good HowTos that you may find in the Internet regarding the upgrade anyway. Attaching link into one of the simplest in my opinion.

During the upgrade process my ntp package was successfully upgraded into the 4.2.6.p5 version and now my NTP client works fine back:

server:~# ntpdate 1.2.3.4
10 Apr 07:35:47 ntpdate[16136]: step time server 1.2.3.4 offset 0.053471 sec
server:~# ntpdate -d 1.2.3.4
10 Apr 07:35:58 ntpdate[16263]: ntpdate 4.2.6p5@1.2349-o Sat May 12 09:07:19 UTC 2012 (1)
transmit(1.2.3.4)
receive(1.2.3.4)
transmit(1.2.3.4)
receive(1.2.3.4)
transmit(1.2.3.4)
receive(1.2.3.4)
transmit(1.2.3.4)
receive(1.2.3.4)
server 1.2.3.4, port 123
stratum 4, precision -6, leap 00, trust 000
refid [1.2.3.4], delay 0.04175, dispersion 0.00439
transmitted 4, in filter 4
reference time:    d50f77c8.236e6e72  Wed, Apr 10 2013  7:31:52.138
originate timestamp: d50f78c4.8c643102  Wed, Apr 10 2013  7:36:04.548
transmit timestamp:  d50f78c4.8b70c9ac  Wed, Apr 10 2013  7:36:04.544
filter delay:  0.04175  0.04176  0.04187  0.04179 
         0.00000  0.00000  0.00000  0.00000 
filter offset: -0.00309 -0.00623 0.006514 0.003438
         0.000000 0.000000 0.000000 0.000000
delay 0.04175, dispersion 0.00439
offset -0.003097

10 Apr 07:36:04 ntpdate[16263]: adjust time server 1.2.3.4 offset -0.003097 sec