Udoo will not boot after apt-get upgrade

Discussion in 'UDOO NEO' started by lazerdye, Nov 9, 2015.

  1. lazerdye

    lazerdye New Member

    Joined:
    Nov 9, 2015
    Messages:
    1
    Likes Received:
    0
    Hi,

    I performed an:
    $ sudo apt-get update
    followed by
    $ sudo apt-get upgrade

    Then I rebooted the device, and it would not boot up. The red and yellow lights on the board stayed steady, and it was unaccessible over the network. I flashed the SD card back to before the upgrade, and it's working again.

    Is this an expected issue?
     
  2. Kevin.B.W.lEE

    Kevin.B.W.lEE New Member

    Joined:
    Nov 10, 2015
    Messages:
    5
    Likes Received:
    0
    That happened to me.
     
  3. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    No, this is not an expected issue.
    It's unexpected.
    Thanks a lot for having highlighted this problem.
     
  4. sieler

    sieler New Member

    Joined:
    Nov 12, 2015
    Messages:
    15
    Likes Received:
    2
    Same thing happened to me...repeatable (four times). The last time, I did: setup SD, boot to udoo, setup WiFi password, reboot.
    That worked (I wanted to confirm I could reboot at all, without doing apt-get stuff!)
    Rebooted ok. This means the distro image *can* reboot!

    Did apt-get update, apt-get upgrade
    NOTE: got error in 'upgrade':
    ...did a second "apt-get upgrade" which completed with no errors.
    did 'sync'
    tried: reboot ... wouldn't come up.

    repeated above, and then tried "shutdown -h" followed by a power cycle ... wouldn't come up.

    Note: not sure about first two tests, but in the last two tests (i.e., create SD image, do initial bootup, setup wifi, do apt-get update / apt-get upgrade)
    I got the dpkg error each time. On another thread somewhere, someone suggested doing:
    dpkg --add-architecture armhf
    I did it, but it wasn't a clean/good/valid test (because I'd already done one attempt at apt-update), and the subsequent reboot failed.

    If I get ambitious, I'll do a new image, boot to it, do the 'add', then try apt-get update/upgrade and see what happens.[/QUOTE]
     
    Cyril BOSSELUT likes this.
  5. Autor69

    Autor69 New Member

    Joined:
    Nov 12, 2015
    Messages:
    3
    Likes Received:
    0
    Same here, Flash SD on Linux, then apt-get update & apt-get upgrade as first thing done. Boot failed. Repeated couple times, always same reuslt, I thing the Linux-image is somehow broken
     
  6. sieler

    sieler New Member

    Joined:
    Nov 12, 2015
    Messages:
    15
    Likes Received:
    2
    > If I get ambitious, I'll do a new image, boot to it, do the 'add', then try apt-get update/upgrade and see what happens.[/QUOTE][/QUOTE]

    I tried again, first doing the dkpg add-architecture, then apt-get update , apt-get upgrade, reboot ... failed.
     
  7. sieler

    sieler New Member

    Joined:
    Nov 12, 2015
    Messages:
    15
    Likes Received:
    2
    Based on some past (bad) experiences with other small board computers, I re-imaged the SD, booted up,
    copied over about 1000 files of C source code / headers / etc, and compiled about 500 programs ...
    heavy disk activity, and the system later rebooted with no problem. (I'd wondered if the problem
    was with the file system, and the "apt-get" was overwriting the end somehow ... but now I doubt
    that possibility.)
     
  8. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    Dear folks,
    now sudo apt-get update or sudo apt-get upgrade shouldn't hang the board anymore.
    Could you try it and tell us if it works for you or not?
     
  9. Autor69

    Autor69 New Member

    Joined:
    Nov 12, 2015
    Messages:
    3
    Likes Received:
    0
    I am sorry for disappointing you but same result today... Do you want some log?
     
  10. sieler

    sieler New Member

    Joined:
    Nov 12, 2015
    Messages:
    15
    Likes Received:
    2
    Same result (failure to bootup) for me.
    Of possible interest are the errors reported by apt-get upgrade:
    (See the lines above text "SEE ABOVE")

    root@udooneo:~# apt-get update
    Hit http://repository.udoo.org udoobuntu InRelease
    ...
    Hit http://ports.ubuntu.com trusty/universe Translation-en
    Reading package lists... Done
    root@udooneo:~#
    root@udooneo:~# apt-get upgrade
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Calculating upgrade... Done
    The following packages will be upgraded:
    gir1.2-vte-2.90 krb5-locales libdrm-dev libdrm-exynos1 libdrm-freedreno1
    libdrm-nouveau2 libdrm-omap1 libdrm-radeon1 libdrm2 libgssapi-krb5-2
    libido3-0.1-0 libk5crypto3 libkrb5-3 libkrb5support0 libnautilus-extension1a
    libnspr4 libnss3 libnss3-nssdb libvte-2.90-9 libvte-2.90-common
    linux-firmware-image-3.14.28-udooneo linux-image-3.14.28-udooneo
    nautilus-data udooneo-bluetooth unity-settings-daemon unzip xserver-common
    xserver-xorg-core xserver-xorg-dev
    The following packages will be DOWNGRADED:
    linux-dtb-3.14.28-udooneo
    29 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
    Need to get 13.3 MB of archives.
    After this operation, 2,252 kB disk space will be freed.
    Do you want to continue? [Y/n] y

    Get:1 http://repository.udoo.org/ udoobuntu/main libdrm-dev armhf 2.4.60-2~ubuntu14.04.2-udoo [139 kB]
    Get:2 http://ports.ubuntu.com/ubuntu-ports/ trusty-updates/main libk5crypto3 armhf 1.12+dfsg-2ubuntu5.2 [75.9 kB]
    ...
    Get:29 http://repository.udoo.org/ udoobuntu/main xserver-xorg-core armhf 2:1.15.1-0ubuntu2.7udoo [982 kB]
    Get:30 http://repository.udoo.org/ udoobuntu/main xserver-xorg-dev armhf 2:1.15.1-0ubuntu2.7udoo [290 kB]
    Fetched 13.3 MB in 11s (1,176 kB/s)
    (Reading database ... 105557 files and directories currently installed.)
    Preparing to unpack .../libk5crypto3_1.12+dfsg-2ubuntu5.2_armhf.deb ...
    Unpacking libk5crypto3:armhf (1.12+dfsg-2ubuntu5.2) over (1.12+dfsg-2ubuntu5.1) ...
    Preparing to unpack .../libgssapi-krb5-2_1.12+dfsg-2ubuntu5.2_armhf.deb ...
    Unpacking libgssapi-krb5-2:armhf (1.12+dfsg-2ubuntu5.2) over (1.12+dfsg-2ubuntu5.1) ...
    ...
    Preparing to unpack .../libnautilus-extension1a_1%3a3.10.1-0ubuntu9.11_armhf.deb ...
    Unpacking libnautilus-extension1a (1:3.10.1-0ubuntu9.11) over (1:3.10.1-0ubuntu9.9) ...
    Preparing to unpack .../linux-image-3.14.28-udooneo_04206-g9e7d486_armhf.deb ...
    Unpacking linux-image-3.14.28-udooneo (04206-g9e7d486) over (04196-gb15f827) ...
    dpkg: error processing archive /var/cache/apt/archives/linux-image-3.14.28-udooneo_04206-g9e7d486_armhf.deb (--unpack):
    trying to overwrite '/boot/dts/imx6sx-udoo-neo-hdmi.dtb', which is also in package linux-dtb-3.14.28-udooneo 04196-gb15f827
    dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
    dpkg: warning: downgrading linux-dtb-3.14.28-udooneo from 04196-gb15f827 to 1.0-1

    SEE ABOVE

    Preparing to unpack .../linux-dtb-3.14.28-udooneo_1.0-1_all.deb ...
    Unpacking linux-dtb-3.14.28-udooneo (1.0-1) over (04196-gb15f827) ...
    Preparing to unpack .../linux-firmware-image-3.14.28-udooneo_04204-ge2a34ed_armhf.deb ...
    Unpacking linux-firmware-image-3.14.28-udooneo (04204-ge2a34ed) over (04196-gb15f827) ...
    Preparing to unpack .../nautilus-data_1%3a3.10.1-0ubuntu9.11_all.deb ...
    Unpacking nautilus-data (1:3.10.1-0ubuntu9.11) over (1:3.10.1-0ubuntu9.9) ...
    Preparing to unpack .../udooneo-bluetooth_1.2_armhf.deb ...
    UIM SYSFS Node Found at /sys/./devices/soc0/kim.21/install
    Stopping uim-sysfs daemon.
    Unpacking udooneo-bluetooth (1.2) over (1.1) ...
    Preparing to unpack .../unity-settings-daemon_14.04.0+14.04.20151012-0ubuntu1_armhf.deb ...
    ...
    Processing triggers for hicolor-icon-theme (0.13-1) ...
    Processing triggers for mime-support (3.54ubuntu1.1) ...
    Errors were encountered while processing:
    /var/cache/apt/archives/linux-image-3.14.28-udooneo_04206-g9e7d486_armhf.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    SEE ABOVE

    root@udooneo:~# sync
    root@udooneo:~# sync
    root@udooneo:~# reboot
     
  11. Kevin.B.W.lEE

    Kevin.B.W.lEE New Member

    Joined:
    Nov 10, 2015
    Messages:
    5
    Likes Received:
    0
    I got same erroe while I upgrade as sieler described.
    --snip--
    Processing triggers for mime-support (3.54ubuntu1.1) ...
    Errors were encountered while processing:
    /var/cache/apt/archives/linux-image-3.14.28-udooneo_04206-g9e7d486_armhf.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    But I run again update and upgrade, the error has gone.
     
  12. sieler

    sieler New Member

    Joined:
    Nov 12, 2015
    Messages:
    15
    Likes Received:
    2
    Me, too...error gone second time (but still fails on reboot)
     
  13. Kevin.B.W.lEE

    Kevin.B.W.lEE New Member

    Joined:
    Nov 10, 2015
    Messages:
    5
    Likes Received:
    0
    sieler,
    Do you try reboot by command?.
    my neo is booting successfully after I reset the power. how about your neo?
     
  14. sieler

    sieler New Member

    Joined:
    Nov 12, 2015
    Messages:
    15
    Likes Received:
    2
    Kevin...did your reboot succeed *after* doing an "apt-get update" and then "apt-get upgrade"? (No one else reporting on the thread had that success)

    I've tried the reset button, 'reboot' command, and power cycling ... I've done the killer "apt-get upgrade" about 8 times now,
    with different variations of other things (e.g., with/without a sync, a dpkg add, or other compilation / file system work)).
    The only time any reboot succeeds is if I have not yet done an "apt-get upgrade".
    Prior to the 'upgrade', things work.
    After the upgrade, no reboot of any kind works.
     
  15. Kevin.B.W.lEE

    Kevin.B.W.lEE New Member

    Joined:
    Nov 10, 2015
    Messages:
    5
    Likes Received:
    0

    That's interesting.
    In my case, yes, I tried reboot by command at the first time. but neo was pending to reboot.
    So, I plug off and plug in the power.
    That's all I have done.

    udooer@udooneo:/etc$ cat os-release
    NAME="Ubuntu"
    VERSION="14.04.3 LTS, Trusty Tahr"
    ID=ubuntu
    ID_LIKE=debian
    PRETTY_NAME="Ubuntu 14.04.3 LTS"
    VERSION_ID="14.04"
    HOME_URL="http://www.ubuntu.com/"
    SUPPORT_URL="http://help.ubuntu.com/"
    BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
    udooer@udooneo:/etc$ uname -a
    Linux udooneo 3.14.28-udooneo-04206-g9e7d486 #31 SMP PREEMPT Thu Nov 12 16:22:15 CET 2015 armv7l armv7l armv7l GNU/Linux
    udooer@udooneo:/etc$
     
  16. sieler

    sieler New Member

    Joined:
    Nov 12, 2015
    Messages:
    15
    Likes Received:
    2
    thanks.... this thread is specifically about something you haven't tried yet :)
    (I.e., apt-get update followed by apt-get upgrade, followed by reboot)
     
  17. r0br0ck

    r0br0ck New Member

    Joined:
    Nov 15, 2015
    Messages:
    7
    Likes Received:
    3
    Hi, I had the same error after apt-get upgrade. I did a reboot command and the neo hadn't came up. after a button reboot neo is up and running.

    greetz
     
  18. derekdb

    derekdb New Member

    Joined:
    Nov 15, 2015
    Messages:
    5
    Likes Received:
    1
    Has anyone observed the boot logs after reboot from the serial console?
     
  19. Autor69

    Autor69 New Member

    Joined:
    Nov 12, 2015
    Messages:
    3
    Likes Received:
    0
    I somehow managed it by apt-get update apt-get upgrade, then install mc( for seeing logs), the apt-get update and apt-get upgrade and reboot worked. I dont know why, maybe I was just lucky
     
  20. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    friends, would you re-check it pls? Should work now - I hope
     

Share This Page