[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Can't bring up the network



Thanks, Alan, I looked at the log but nothing stands out. That's not to say I'm missing something, though.

Unfortunately, dpkg -i fails because when the system crashed at least a couple of list files got corrupted and I get things like

file list file for package 'debianutils' is missing final newline

So I won't be able to reinstall any packages until I can get the network up and download another copy of the failing packages.

So I'm back to trying to get the network up and running.

Jerry


On 6/7/2018 12:16 PM, Alan Corey wrote:
Pre-up can be empty, it's not always used.  It's a place to put scripts that should be run before bringing the interface/network up.

There should be a log somewhere like in /var/log/apt. If you figure out what it was trying to load you can put back the old version with dpkg -i <file>. The debs on the box are in something like /var/cache/apt/archive.  Dpkg -i will install any deb over another, it's good for reverting.

Similar nightmare on my rock64, that's why I'm on a phone.

Sent from my Motorola XT1527

On Thu, Jun 7, 2018, 11:57 AM Jerry Stuckle <stucklejerry@gmail.com <mailto:stucklejerry@gmail.com>> wrote:

    A little background.  I have Debian-arm 3.2.0-4-vexpress running under
    QEMU.  This has been working fine, but in serious need of an upgrade.
    So I ran apt-get update and apt-get upgrade.  This resulted in a long
    process of updating packages.

    Unfortunately, the hosting system crashed while the upgrade was
    running.
       This resulted in some packages which were only partially installed.

    In trying to get things back I found the network interface (eth0) did
    not come back up.  Trying to start it with ifup eth0 results in

    /bin/sh: 1: run-parts: Exec format error
    Failed to bring up eth0

    Adding --verbose gives

    run-parts --exit-on-error --verbose /etc/network/if-pre-up.d
    /bin/sh: 1: run-parts: Exec format error
    Failed to bring up eth0

    /etc/network/if-pre-up.d is empty, which is what I suspect is the cause
    of the problem.  However, I don't know what should be in there on this
    system - or what package is supposed to install it.  QEMU is
    emulating a
    standard ethernet port (not wifi).  Other systems I have installed use
    wifi, so will (obviously) have something different in here.

    The problem is, I'm a programmer, Jim, not a Unix Administrator.  I
    could use any suggestions someone might have.

    And once this gets fixed I can try to correct the other problems
    created
    by the aborted upgrade.

    TIA.

    Jerry



Reply to: