Hi,
I need to use cmake to build a radio package but when I do : apt-get install cmake it responds with :
root@DietPi:~# apt-get install cmake
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
cmake-data libarchive13 liblzo2-2 libxml2
Suggested packages:
codeblocks eclipse ninja-build lrzip
Recommended packages:
xml-core
The following NEW packages will be installed:
cmake cmake-data libarchive13 liblzo2-2 libxml2
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 4,194 kB of archives.
After this operation, 18.7 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ftp.debian.org/debian/ jessie/main libxml2 arm64 2.9.1+dfsg1-5+deb8u4 [695 kB]
Get:2 http://ftp.debian.org/debian/ jessie/main cmake-data all 3.0.2-1+deb8u1 [929 kB]
Get:3 http://ftp.debian.org/debian/ jessie/main liblzo2-2 arm64 2.08-1.2 [48.2 kB]
Get:4 http://ftp.debian.org/debian/ jessie/main libarchive13 arm64 3.1.2-11+deb8u3 [226 kB]
Get:5 http://ftp.debian.org/debian/ jessie/main cmake arm64 3.0.2-1+deb8u1 [2,296 kB]
Fetched 4,194 kB in 3s (1,133 kB/s)
Selecting previously unselected package libxml2:arm64.
(Reading database ... 21508 files and directories currently installed.)
Preparing to unpack .../libxml2_2.9.1+dfsg1-5+deb8u4_arm64.deb ...
Unpacking libxml2:arm64 (2.9.1+dfsg1-5+deb8u4) ...
Selecting previously unselected package cmake-data.
Preparing to unpack .../cmake-data_3.0.2-1+deb8u1_all.deb ...
Unpacking cmake-data (3.0.2-1+deb8u1) ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
From this point on the system appears to be dead.
I can start another ssh session and keys are echoed back but I cannot
get htop or top to run.
However, 'ps ax' runs and the last few lines displayed are :
1578 ? Ss 0:00 /usr/sbin/dropbear -d /etc/dropbear/dropbear_dss_host_key -r /etc/dropbear/dropbear_rsa_host_key -p 22 -W 65536
1579 ? Ss 0:00 /usr/sbin/dropbear -d /etc/dropbear/dropbear_dss_host_key -r /etc/dropbear/dropbear_rsa_host_key -p 22 -W 65536
1580 pts/0 Ss 0:00 -bash
1666 ? S 0:00 [kworker/3:1]
1667 pts/0 S+ 0:56 apt-get install cmake
1690 pts/1 Ds+ 0:00 /usr/bin/dpkg --force-confdef --force-confold --status-fd 40 --unpack --auto-deconfigure /var/cache/apt/archives/libxml2_2.9.1+dfsg1-5+deb8u4_arm64.deb /var/cache/apt/archives/cmake-data_3.0.2-1+deb8u1_all.deb /var/cache/apt/archives/liblzo2-2_2.08-1.2_arm64.deb /var/cache/apt/archives/libarchive13_3.1.2-11+deb8u3_arm64.deb /var/cache/apt/archives/cmake_3.0.2-1+deb8u1_arm64.deb
1707 pts/1 Z+ 0:00 [dpkg-deb] <defunct>
1710 ? S 0:00 [kworker/0:2]
1711 ? Ss 0:00 /usr/sbin/dropbear -d /etc/dropbear/dropbear_dss_host_key -r /etc/dropbear/dropbear_rsa_host_key -p 22 -W 65536
1712 ? Ss 0:00 /usr/sbin/dropbear -d /etc/dropbear/dropbear_dss_host_key -r /etc/dropbear/dropbear_rsa_host_key -p 22 -W 65536
1713 pts/2 Ss 0:00 -bash
1803 ? S 0:00 [kworker/u8:1]
1805 pts/2 R+ 0:00 ps ax
I am running from a reasonably fast 32Gb MicroSD card.
This behaviour is repeatable.
The S/W is :
V145 | oDroid C2 (aarch64)
The C2 is powered by one of the official PSU Units.
It works perfectly on a RPi v3.
Any ideas please ?.
Thanks,
Andy Pevy
Odroid C2 : System hang while installing 'cmake' Topic is solved
Re: Odroid C2 : System hang while installing 'cmake'
Hi Andy,
Strange, unable to replicate on fresh install with my C2 here:
Could possibly be the apt/cache is corrupt.
Try clearing apt cache and package:
Reinstall
If problems persist, it may be a hardware issue. As your using the official PSU we should assume thats fine, but lets check SD card for any errors on filesystem:
Strange, unable to replicate on fresh install with my C2 here:
Code: Select all
───────────────────────────────────────
DietPi | 16:42 | Tue 07/03/17
───────────────────────────────────────
V145 | oDroid C2 (aarch64)
───────────────────────────────────────
IP Address | 192.168.0.112
───────────────────────────────────────
Created by : Daniel Knight
Web : http://DietPi.com
Twitter : http://twitter.com/dietpi_
Donate : http://goo.gl/pzISt9
Device image possible thanks to: Meveric
DietPi's web hosting is powered by: MyVirtualServer.com
dietpi-launcher = All the DietPi programs in one place.
dietpi-config = Feature rich configuration tool for your device.
dietpi-software = Select optimized software for installation.
htop = Resource monitor.
cpu = Shows CPU information and stats.
root@DietPi:~# apt-get install cmake
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
cmake-data libarchive13 liblzo2-2 libxml2
Suggested packages:
codeblocks eclipse ninja-build lrzip
Recommended packages:
gcc make xml-core
The following NEW packages will be installed:
cmake cmake-data libarchive13 liblzo2-2 libxml2
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,500 kB/4,194 kB of archives.
After this operation, 18.7 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ftp.debian.org/debian/ jessie/main cmake-data all 3.0.2-1+deb8u1 [929 kB]
Get:2 http://ftp.debian.org/debian/ jessie/main liblzo2-2 arm64 2.08-1.2 [48.2 kB]
Get:3 http://ftp.debian.org/debian/ jessie/main libarchive13 arm64 3.1.2-11+deb8u3 [226 kB]
Get:4 http://ftp.debian.org/debian/ jessie/main cmake arm64 3.0.2-1+deb8u1 [2,296 kB]
Fetched 3,500 kB in 0s (4,026 kB/s)
Selecting previously unselected package libxml2:arm64.
(Reading database ... 16299 files and directories currently installed.)
Preparing to unpack .../libxml2_2.9.1+dfsg1-5+deb8u4_arm64.deb ...
Unpacking libxml2:arm64 (2.9.1+dfsg1-5+deb8u4) ...
Selecting previously unselected package cmake-data.
Preparing to unpack .../cmake-data_3.0.2-1+deb8u1_all.deb ...
Unpacking cmake-data (3.0.2-1+deb8u1) ...
Selecting previously unselected package liblzo2-2:arm64.
Preparing to unpack .../liblzo2-2_2.08-1.2_arm64.deb ...
Unpacking liblzo2-2:arm64 (2.08-1.2) ...
Selecting previously unselected package libarchive13:arm64.
Preparing to unpack .../libarchive13_3.1.2-11+deb8u3_arm64.deb ...
Unpacking libarchive13:arm64 (3.1.2-11+deb8u3) ...
Selecting previously unselected package cmake.
Preparing to unpack .../cmake_3.0.2-1+deb8u1_arm64.deb ...
Unpacking cmake (3.0.2-1+deb8u1) ...
Setting up libxml2:arm64 (2.9.1+dfsg1-5+deb8u4) ...
Setting up cmake-data (3.0.2-1+deb8u1) ...
Setting up liblzo2-2:arm64 (2.08-1.2) ...
Setting up libarchive13:arm64 (3.1.2-11+deb8u3) ...
Setting up cmake (3.0.2-1+deb8u1) ...
Processing triggers for libc-bin (2.19-18+deb8u7) ...
Try clearing apt cache and package:
Code: Select all
apt-get purge cmake
apt-get clean
rm -R /var/lib/apt/lists/* -vf
apt-get update
Code: Select all
apt-get install cmake
Code: Select all
dmesg | grep mmc
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Re: Odroid C2 : System hang while installing 'cmake'
Hi Daniel,
Thanks, that did the trick.
The first line, 'apt-get purge cmake' caused it to go comatose again and was unresponsive to
^C or ^Z.
So I entered the other commands in another terminal session and I now have cmake working.
Thanks.
Interesting that this apparent lockup was from a clean install and was reproducible on
2 different sdcards.
Andy
Thanks, that did the trick.
The first line, 'apt-get purge cmake' caused it to go comatose again and was unresponsive to
^C or ^Z.
So I entered the other commands in another terminal session and I now have cmake working.
Thanks.
Interesting that this apparent lockup was from a clean install and was reproducible on
2 different sdcards.
Andy
Re: Odroid C2 : System hang while installing 'cmake'
Hi Andy,andy_pevy wrote: Interesting that this apparent lockup was from a clean install and was reproducible on
2 different sdcards.
Andy
Yep strange, although, I cant reproduce it here on EMMC or any of my SD's.
I'd highly recommend running a full format on the SD card, prior to writing the DietPi image. This will completely zero/reset the card, and has provided our users that experienced similar issues, a fix:
Section: Before writing this image, lets also complete a full format on the SD card:
https://github.com/Fourdee/DietPi/issue ... -283030267
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Donating is the easiest – you can use PayPal or become a DietPi patron.