Jump to content

Running apt-get dist-upgrade installs the new kernel but takes the Orange Pi PC a really long time


aegrotatio

Recommended Posts

Running apt-get dist-upgrade tries to install the new Allwinner H3 kernel but it takes the Orange Pi PC a really, really long time to extract and install it.  The heartbeat LED flashed really fast and after 30 minutes I elected to stop it.

 

Has anyone succeeded doing apt-get dist-upgrade today to get the new kernel on the Orange Pi PC or Orange Pi One, and, if so, how long did it take?

 

The packages are:

linux-firmware-image-sun8i linux-headers-sun8i linux-image-sun8i linux-jessie-root-orangepih3 linux-u-boot-orangepih3-default 

 

Thanks in advance for any information or advice.

 

Link to comment
Share on other sites

This can take some time since there are lot's of files and it also recompile kernel header on install. If you are using some under average SD card, this can easily takes 30 minutes or more.

Link to comment
Share on other sites

 linux-headers-sun8i

 

We could take the installation of this package as some sort of storage benchmark. If the rootfs is on SD card and the SD card shows slow random write performance it will simply take ages until finished. So in case you're stuck here, read through this thread and get a good card or move your rootfs to a fast connected disk.

 

The usual no name cards (and the pretty similar 'bad brands' like Kingston, PNY, Verbatim, Intenso and so on) might be over 100 times slower compared to our recommended cards (for reasons see the aforementioned thread -- forget about 'speed class' since random IO is way more important!)

Link to comment
Share on other sites

Me too. I ran the recommended upgrade on my OPI One and compiling the headers. It ran for about four hours without ending. Then I reset the OPI, it bricked. I used another SD card, installed clean Armbian image and run upgrade again. Already running for 3.5 hours. The computer is alive and working. I can open a second session through Alt-F2. The top command shows that most working are alternately cc1, apt-get, ld and make. Both SD cards are tried, tested, recommended type, U-1 class.

Link to comment
Share on other sites

1. I started with image from download, v5.10

2. SD card = 7.30 EUR (shipped) value Samsung EVO 32GB

3. Write, one reboot, user creation

4. apt-get update

5. apt-get upgrade to latest version took only 4 minutes.

 

Nothing is wrong on our side.

 

 

time apt-get upgrade

Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... The following package was automatically installed and is no longer required:
libnl-route-3-200
Use 'apt-get autoremove' to remove it.
Done
The following packages will be upgraded:
armbian-hostapd libarchive13 libexpat1 libidn11 libmysqlclient18 libssl-dev libssl1.0.0 libsvn1 libtasn1-6 linux-firmware-image-sun8i linux-headers-sun8i linux-image-sun8i
linux-jessie-root-orangepih3 linux-u-boot-orangepih3-default mysql-common openssl subversion tzdata
18 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 25.2 MB of archives.
After this operation, 2,495 kB disk space will be freed.
Do you want to continue? [Y/n]
Get:1 http://security.debian.org/jessie/updates/main libssl-dev armhf 1.0.1k-3+deb8u5 [1,106 kB]
Get:2 http://apt.armbian.com/jessie/main armbian-hostapd armhf 5.13 [986 kB]
Get:3 http://httpredir.debian.org/debian/jessie-updates/main tzdata all 2016d-0+deb8u1 [185 kB]
Get:4 http://security.debian.org/jessie/updates/main libssl1.0.0 armhf 1.0.1k-3+deb8u5 [861 kB]
Get:5 http://security.debian.org/jessie/updates/main libidn11 armhf 1.29-1+deb8u1 [133 kB]
Get:6 http://security.debian.org/jessie/updates/main libtasn1-6 armhf 4.2-3+deb8u2 [43.2 kB]
Get:7 http://security.debian.org/jessie/updates/main libarchive13 armhf 3.1.2-11+deb8u1 [239 kB]
Get:8 http://security.debian.org/jessie/updates/main libexpat1 armhf 2.1.0-6+deb8u2 [61.5 kB]
Get:9 http://security.debian.org/jessie/updates/main mysql-common all 5.5.49-0+deb8u1 [81.1 kB]
Get:10 http://security.debian.org/jessie/updates/main libmysqlclient18 armhf 5.5.49-0+deb8u1 [626 kB]
Get:11 http://apt.armbian.com/jessie/main linux-firmware-image-sun8i armhf 5.13 [113 kB]
Get:12 http://apt.armbian.com/jessie/main linux-headers-sun8i armhf 5.13 [5,820 kB]
Get:13 http://security.debian.org/jessie/updates/main subversion armhf 1.8.10-6+deb8u4 [911 kB]
Get:14 http://security.debian.org/jessie/updates/main libsvn1 armhf 1.8.10-6+deb8u4 [944 kB]
Get:15 http://security.debian.org/jessie/updates/main openssl armhf 1.0.1k-3+deb8u5 [672 kB]
Get:16 http://apt.armbian.com/jessie/main linux-image-sun8i armhf 5.13 [11.9 MB]
Get:17 http://apt.armbian.com/jessie/main linux-jessie-root-orangepih3 armhf 5.11 [380 kB]
Get:18 http://apt.armbian.com/jessie/main linux-u-boot-orangepih3-default armhf 5.11 [152 kB]
Fetched 25.2 MB in 35s (708 kB/s)
Preconfiguring packages ...
(Reading database ... 47896 files and directories currently installed.)
Preparing to unpack .../libssl-dev_1.0.1k-3+deb8u5_armhf.deb ...
Unpacking libssl-dev:armhf (1.0.1k-3+deb8u5) over (1.0.1k-3+deb8u4) ...
Preparing to unpack .../libssl1.0.0_1.0.1k-3+deb8u5_armhf.deb ...
Unpacking libssl1.0.0:armhf (1.0.1k-3+deb8u5) over (1.0.1k-3+deb8u4) ...
Preparing to unpack .../libidn11_1.29-1+deb8u1_armhf.deb ...
Unpacking libidn11:armhf (1.29-1+deb8u1) over (1.29-1+b2) ...
Preparing to unpack .../libtasn1-6_4.2-3+deb8u2_armhf.deb ...
Unpacking libtasn1-6:armhf (4.2-3+deb8u2) over (4.2-3+deb8u1) ...
Preparing to unpack .../libarchive13_3.1.2-11+deb8u1_armhf.deb ...
Unpacking libarchive13:armhf (3.1.2-11+deb8u1) over (3.1.2-11) ...
Preparing to unpack .../libexpat1_2.1.0-6+deb8u2_armhf.deb ...
Unpacking libexpat1:armhf (2.1.0-6+deb8u2) over (2.1.0-6+deb8u1) ...
Preparing to unpack .../mysql-common_5.5.49-0+deb8u1_all.deb ...
Unpacking mysql-common (5.5.49-0+deb8u1) over (5.5.47-0+deb8u1) ...
Preparing to unpack .../libmysqlclient18_5.5.49-0+deb8u1_armhf.deb ...
Unpacking libmysqlclient18:armhf (5.5.49-0+deb8u1) over (5.5.47-0+deb8u1) ...
Preparing to unpack .../subversion_1.8.10-6+deb8u4_armhf.deb ...
Unpacking subversion (1.8.10-6+deb8u4) over (1.8.10-6+deb8u3) ...
Preparing to unpack .../libsvn1_1.8.10-6+deb8u4_armhf.deb ...
Unpacking libsvn1:armhf (1.8.10-6+deb8u4) over (1.8.10-6+deb8u3) ...
Preparing to unpack .../tzdata_2016d-0+deb8u1_all.deb ...
Unpacking tzdata (2016d-0+deb8u1) over (2016c-0+deb8u1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up tzdata (2016d-0+deb8u1) ...

Current default time zone: 'Europe/Ljubljana'
Local time is now: Wed Jun 1 18:00:37 CEST 2016.
Universal Time is now: Wed Jun 1 16:00:37 UTC 2016.
Run 'dpkg-reconfigure tzdata' if you wish to change it.

(Reading database ... 47901 files and directories currently installed.)
Preparing to unpack .../armbian-hostapd_5.13_armhf.deb ...
Unpacking armbian-hostapd (5.13) over (5.10) ...
Preparing to unpack .../linux-firmware-image-sun8i_5.13_armhf.deb ...
Unpacking linux-firmware-image-sun8i (5.13) over (5.10) ...
Preparing to unpack .../linux-headers-sun8i_5.13_armhf.deb ...
Unpacking linux-headers-sun8i (5.13) over (5.10) ...
Preparing to unpack .../linux-image-sun8i_5.13_armhf.deb ...
Unpacking linux-image-sun8i (5.13) over (5.10) ...
Preparing to unpack .../linux-jessie-root-orangepih3_5.11_armhf.deb ...
Unpacking linux-jessie-root-orangepih3 (5.11) over (5.10) ...
Preparing to unpack .../linux-u-boot-orangepih3-default_5.11_armhf.deb ...
Unpacking linux-u-boot-orangepih3-default (5.11) over (5.10) ...
Preparing to unpack .../openssl_1.0.1k-3+deb8u5_armhf.deb ...
Unpacking openssl (1.0.1k-3+deb8u5) over (1.0.1k-3+deb8u4) ...
Processing triggers for systemd (215-17+deb8u4) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up libssl1.0.0:armhf (1.0.1k-3+deb8u5) ...
Setting up libssl-dev:armhf (1.0.1k-3+deb8u5) ...
Setting up libidn11:armhf (1.29-1+deb8u1) ...
Setting up libtasn1-6:armhf (4.2-3+deb8u2) ...
Setting up libarchive13:armhf (3.1.2-11+deb8u1) ...
Setting up libexpat1:armhf (2.1.0-6+deb8u2) ...
Setting up mysql-common (5.5.49-0+deb8u1) ...
Setting up libmysqlclient18:armhf (5.5.49-0+deb8u1) ...
Setting up libsvn1:armhf (1.8.10-6+deb8u4) ...
Setting up subversion (1.8.10-6+deb8u4) ...
Setting up armbian-hostapd (5.13) ...
Installing new version of config file /etc/hostapd/ifupdown.sh ...
Installing new version of config file /etc/init.d/hostapd ...
Setting up linux-firmware-image-sun8i (5.13) ...
Setting up linux-headers-sun8i (5.13) ...
Compiling headers - please wait ...
Setting up linux-image-sun8i (5.13) ...
update-initramfs: Generating /boot/initrd.img-3.4.112-sun8i
Setting up linux-jessie-root-orangepih3 (5.11) ...
Setting up linux-u-boot-orangepih3-default (5.11) ...
Setting up openssl (1.0.1k-3+deb8u5) ...
Processing triggers for libc-bin (2.19-18+deb8u4) ...
Processing triggers for systemd (215-17+deb8u4) ...

real 3m57.057s
user 1m22.390s
sys 0m37.570s

 

Link to comment
Share on other sites

1. Started with heavily used customized images on el-cheapo 4G no-name SDcards ( more or less worst case scenario )

 

2. Udates/upgrades of OPI ONE / OPI LITE Armbian_5.10 ( earlier upgrade from 5.05 ) to latest versions took only 45 mins.

 

3. Minor cleanups, no hickups -> GREAT JOB !

Link to comment
Share on other sites

1. I started with image from download, v5.10

2. SD card = 7.30 EUR (shipped) value Samsung EVO 32GB

3. Write, one reboot, user creation

4. apt-get update

5. apt-get upgrade to latest version took only 4 minutes.

 

Nothing is wrong on our side.

 

 

time apt-get upgrade

Reading package lists... Done

Building dependency tree

Reading state information... Done

Calculating upgrade... The following package was automatically installed and is no longer required:

libnl-route-3-200

Use 'apt-get autoremove' to remove it.

Done

The following packages will be upgraded:

armbian-hostapd libarchive13 libexpat1 libidn11 libmysqlclient18 libssl-dev libssl1.0.0 libsvn1 libtasn1-6 linux-firmware-image-sun8i linux-headers-sun8i linux-image-sun8i

linux-jessie-root-orangepih3 linux-u-boot-orangepih3-default mysql-common openssl subversion tzdata

18 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Need to get 25.2 MB of archives.

After this operation, 2,495 kB disk space will be freed.

Do you want to continue? [Y/n]

Get:1 http://security.debian.org/jessie/updates/main libssl-dev armhf 1.0.1k-3+deb8u5 [1,106 kB]

Get:2 http://apt.armbian.com/jessie/main armbian-hostapd armhf 5.13 [986 kB]

Get:3 http://httpredir.debian.org/debian/jessie-updates/main tzdata all 2016d-0+deb8u1 [185 kB]

Get:4 http://security.debian.org/jessie/updates/main libssl1.0.0 armhf 1.0.1k-3+deb8u5 [861 kB]

Get:5 http://security.debian.org/jessie/updates/main libidn11 armhf 1.29-1+deb8u1 [133 kB]

Get:6 http://security.debian.org/jessie/updates/main libtasn1-6 armhf 4.2-3+deb8u2 [43.2 kB]

Get:7 http://security.debian.org/jessie/updates/main libarchive13 armhf 3.1.2-11+deb8u1 [239 kB]

Get:8 http://security.debian.org/jessie/updates/main libexpat1 armhf 2.1.0-6+deb8u2 [61.5 kB]

Get:9 http://security.debian.org/jessie/updates/main mysql-common all 5.5.49-0+deb8u1 [81.1 kB]

Get:10 http://security.debian.org/jessie/updates/main libmysqlclient18 armhf 5.5.49-0+deb8u1 [626 kB]

Get:11 http://apt.armbian.com/jessie/main linux-firmware-image-sun8i armhf 5.13 [113 kB]

Get:12 http://apt.armbian.com/jessie/main linux-headers-sun8i armhf 5.13 [5,820 kB]

Get:13 http://security.debian.org/jessie/updates/main subversion armhf 1.8.10-6+deb8u4 [911 kB]

Get:14 http://security.debian.org/jessie/updates/main libsvn1 armhf 1.8.10-6+deb8u4 [944 kB]

Get:15 http://security.debian.org/jessie/updates/main openssl armhf 1.0.1k-3+deb8u5 [672 kB]

Get:16 http://apt.armbian.com/jessie/main linux-image-sun8i armhf 5.13 [11.9 MB]

Get:17 http://apt.armbian.com/jessie/main linux-jessie-root-orangepih3 armhf 5.11 [380 kB]

Get:18 http://apt.armbian.com/jessie/main linux-u-boot-orangepih3-default armhf 5.11 [152 kB]

Fetched 25.2 MB in 35s (708 kB/s)

Preconfiguring packages ...

(Reading database ... 47896 files and directories currently installed.)

Preparing to unpack .../libssl-dev_1.0.1k-3+deb8u5_armhf.deb ...

Unpacking libssl-dev:armhf (1.0.1k-3+deb8u5) over (1.0.1k-3+deb8u4) ...

Preparing to unpack .../libssl1.0.0_1.0.1k-3+deb8u5_armhf.deb ...

Unpacking libssl1.0.0:armhf (1.0.1k-3+deb8u5) over (1.0.1k-3+deb8u4) ...

Preparing to unpack .../libidn11_1.29-1+deb8u1_armhf.deb ...

Unpacking libidn11:armhf (1.29-1+deb8u1) over (1.29-1+b2) ...

Preparing to unpack .../libtasn1-6_4.2-3+deb8u2_armhf.deb ...

Unpacking libtasn1-6:armhf (4.2-3+deb8u2) over (4.2-3+deb8u1) ...

Preparing to unpack .../libarchive13_3.1.2-11+deb8u1_armhf.deb ...

Unpacking libarchive13:armhf (3.1.2-11+deb8u1) over (3.1.2-11) ...

Preparing to unpack .../libexpat1_2.1.0-6+deb8u2_armhf.deb ...

Unpacking libexpat1:armhf (2.1.0-6+deb8u2) over (2.1.0-6+deb8u1) ...

Preparing to unpack .../mysql-common_5.5.49-0+deb8u1_all.deb ...

Unpacking mysql-common (5.5.49-0+deb8u1) over (5.5.47-0+deb8u1) ...

Preparing to unpack .../libmysqlclient18_5.5.49-0+deb8u1_armhf.deb ...

Unpacking libmysqlclient18:armhf (5.5.49-0+deb8u1) over (5.5.47-0+deb8u1) ...

Preparing to unpack .../subversion_1.8.10-6+deb8u4_armhf.deb ...

Unpacking subversion (1.8.10-6+deb8u4) over (1.8.10-6+deb8u3) ...

Preparing to unpack .../libsvn1_1.8.10-6+deb8u4_armhf.deb ...

Unpacking libsvn1:armhf (1.8.10-6+deb8u4) over (1.8.10-6+deb8u3) ...

Preparing to unpack .../tzdata_2016d-0+deb8u1_all.deb ...

Unpacking tzdata (2016d-0+deb8u1) over (2016c-0+deb8u1) ...

Processing triggers for man-db (2.7.0.2-5) ...

Setting up tzdata (2016d-0+deb8u1) ...

 

Current default time zone: 'Europe/Ljubljana'

Local time is now: Wed Jun 1 18:00:37 CEST 2016.

Universal Time is now: Wed Jun 1 16:00:37 UTC 2016.

Run 'dpkg-reconfigure tzdata' if you wish to change it.

 

(Reading database ... 47901 files and directories currently installed.)

Preparing to unpack .../armbian-hostapd_5.13_armhf.deb ...

Unpacking armbian-hostapd (5.13) over (5.10) ...

Preparing to unpack .../linux-firmware-image-sun8i_5.13_armhf.deb ...

Unpacking linux-firmware-image-sun8i (5.13) over (5.10) ...

Preparing to unpack .../linux-headers-sun8i_5.13_armhf.deb ...

Unpacking linux-headers-sun8i (5.13) over (5.10) ...

Preparing to unpack .../linux-image-sun8i_5.13_armhf.deb ...

Unpacking linux-image-sun8i (5.13) over (5.10) ...

Preparing to unpack .../linux-jessie-root-orangepih3_5.11_armhf.deb ...

Unpacking linux-jessie-root-orangepih3 (5.11) over (5.10) ...

Preparing to unpack .../linux-u-boot-orangepih3-default_5.11_armhf.deb ...

Unpacking linux-u-boot-orangepih3-default (5.11) over (5.10) ...

Preparing to unpack .../openssl_1.0.1k-3+deb8u5_armhf.deb ...

Unpacking openssl (1.0.1k-3+deb8u5) over (1.0.1k-3+deb8u4) ...

Processing triggers for systemd (215-17+deb8u4) ...

Processing triggers for man-db (2.7.0.2-5) ...

Setting up libssl1.0.0:armhf (1.0.1k-3+deb8u5) ...

Setting up libssl-dev:armhf (1.0.1k-3+deb8u5) ...

Setting up libidn11:armhf (1.29-1+deb8u1) ...

Setting up libtasn1-6:armhf (4.2-3+deb8u2) ...

Setting up libarchive13:armhf (3.1.2-11+deb8u1) ...

Setting up libexpat1:armhf (2.1.0-6+deb8u2) ...

Setting up mysql-common (5.5.49-0+deb8u1) ...

Setting up libmysqlclient18:armhf (5.5.49-0+deb8u1) ...

Setting up libsvn1:armhf (1.8.10-6+deb8u4) ...

Setting up subversion (1.8.10-6+deb8u4) ...

Setting up armbian-hostapd (5.13) ...

Installing new version of config file /etc/hostapd/ifupdown.sh ...

Installing new version of config file /etc/init.d/hostapd ...

Setting up linux-firmware-image-sun8i (5.13) ...

Setting up linux-headers-sun8i (5.13) ...

Compiling headers - please wait ...

Setting up linux-image-sun8i (5.13) ...

update-initramfs: Generating /boot/initrd.img-3.4.112-sun8i

Setting up linux-jessie-root-orangepih3 (5.11) ...

Setting up linux-u-boot-orangepih3-default (5.11) ...

Setting up openssl (1.0.1k-3+deb8u5) ...

Processing triggers for libc-bin (2.19-18+deb8u4) ...

Processing triggers for systemd (215-17+deb8u4) ...

 

real 3m57.057s

user 1m22.390s

sys 0m37.570s

 

I did the same.

SD card = SanDisk micro SDHC Extreme Pro 8GB UHS-I. 

Compile still, at this moment for more than 20 hours.

What can I do?

Link to comment
Share on other sites

I finally succeeded, at eight or ten attempts. Hurray!

I tried three other SD cards.

I tried both the server and desktop version of the installation.

I tried directly attached keyboard and monitor as well as a remote shell.

Helped probably one of two things: The power from a laptop instead of an adapter (5V/2.5A) or set the correct time and date before start the upgrade.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines