package openvswitch-switch 2.5.2-0ubuntu0.16.04.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #1705569 reported by Armin Anton
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openvswitch (Ubuntu)
Expired
Low
Unassigned

Bug Description

I installed using apt-get, following these steps: https://www.paloaltonetworks.com/documentation/80/virtualization/virtualization/set-up-the-vm-series-firewall-on-kvm/install-kvm-and-open-vswitch-on-ubuntu-16-04-1-lts

but I am receiving the following output:

A dependency job for openvswitch-switch.service failed. See 'journalctl -xe' for details.
invoke-rc.d: initscript openvswitch-switch, action "start" failed.
● openvswitch-switch.service - Open vSwitch
   Loaded: loaded (/lib/systemd/system/openvswitch-switch.service; enabled; vendor preset: enabled)
   Active: inactive (dead)

Jul 20 13:16:34 hahaha systemd[1]: Dependency failed for Open vSwitch.
Jul 20 13:16:34 hahaha systemd[1]: openvswitch-switch.service: Job openvswi...'.
Jul 20 13:25:41 hahaha systemd[1]: Stopped Open vSwitch.
Jul 20 13:25:58 hahaha systemd[1]: Dependency failed for Open vSwitch.
Jul 20 13:25:58 hahaha systemd[1]: openvswitch-switch.service: Job openvswi...'.
Jul 20 13:27:59 hahaha systemd[1]: Stopped Open vSwitch.
Jul 20 13:29:11 hahaha systemd[1]: Dependency failed for Open vSwitch.
Jul 20 13:29:11 hahaha systemd[1]: openvswitch-switch.service: Job openvswi...'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package openvswitch-switch (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for systemd (229-4ubuntu17) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
 openvswitch-switch
E: Sub-process /usr/bin/dpkg returned an error code (1)

----------------

Let me know what I should do.

Thanks,
Armin

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: openvswitch-switch 2.5.2-0ubuntu0.16.04.1
ProcVersionSignature: Ubuntu 4.8.0-58.63~16.04.1-generic 4.8.17
Uname: Linux 4.8.0-58-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.10
AptOrdering:
 openvswitch-switch: Install
 openvswitch-switch: Configure
 NULL: ConfigurePending
Architecture: amd64
Date: Thu Jul 20 13:25:58 2017
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2017-07-06 (13 days ago)
InstallationMedia: Ubuntu 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215.2)
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.2
 apt 1.2.20
SourcePackage: openvswitch
Title: package openvswitch-switch 2.5.2-0ubuntu0.16.04.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Armin Anton (arminanton) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Corey Bryant (corey.bryant) wrote :

Hi Armin,

Thanks for reporting this. I'm not sure what the difference is but I'm unable to recreate this.

root@x2:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial
root@x2:~# apt-cache policy openvswitch-switch
openvswitch-switch:
  Installed: 2.5.2-0ubuntu0.16.04.1
  Candidate: 2.5.2-0ubuntu0.16.04.1
  Version table:
 *** 2.5.2-0ubuntu0.16.04.1 500
        500 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     2.5.0-0ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
root@x2:~# systemctl status openvswitch-switch
● openvswitch-switch.service - Open vSwitch
   Loaded: loaded (/lib/systemd/system/openvswitch-switch.service; enabled; vendor preset: enabled)
   Active: active (exited) since Thu 2017-07-27 13:03:30 UTC; 13min ago
 Main PID: 1780 (code=exited, status=0/SUCCESS)
    Tasks: 0
   Memory: 0B
      CPU: 0
   CGroup: /system.slice/openvswitch-switch.service

Jul 27 13:03:30 x2 systemd[1]: Starting Open vSwitch...
Jul 27 13:03:30 x2 systemd[1]: Started Open vSwitch.

Revision history for this message
Corey Bryant (corey.bryant) wrote :

The JournalErrors.txt that Armin attached has several error messages trying to connect to the db socket:

/var/run/openvswitch/db.sock: connection attempt failed (No such file or directory)

Armin, are there any failure messages in /var/log/openvswitch/ovsdb-server.log?

Revision history for this message
James Page (james-page) wrote :

The status of 'openvswitch-nonetwork.service' and its journal entries would be useful:

   sudo systemctl status openvswitch-nonetwork.service
   sudo journalctl -xe -u openvswitch-nonetwork.service

also any log data from /var/log/openvswitch/*

Changed in openvswitch (Ubuntu):
status: New → Incomplete
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for openvswitch (Ubuntu) because there has been no activity for 60 days.]

Changed in openvswitch (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.