开发板: NanoPi-NEO v1.31
TFCard: SanDisk 16G c10 卡 (烧写系统能正常进去)
OS: nanopi-neo_ubuntu-core-xenial_3.4.39_20170908.img
现象: 进入到系统之后,sudo apt-get update 时, 出现 Out of menory 现象.
开机:
复制代码- Ubuntu 16.04.2 LTS NanoPi-NEO ttyS0
- Default Login:
- Username = pi
- Password = pi
- NanoPi-NEO login: pi (automatic login)
- Last login: Thu Mar 23 04:22:08 UTC 2017 on tty1
- _____ _ _ _ _____ _ _____ ____
- | ___| __(_) ___ _ __ __| | |_ _| ____| | | ____/ ___|
- | |_ | '__| |/ _ \ '_ \ / _` | | | | | _| | | | _|| |
- | _|| | | | __/ | | | (_| | | |_| | |___| |___| |__| |___
- |_| |_| |_|\___|_| |_|\__,_|_|\__, |_____|_____|_____\____|
- |___/
- Welcome to Ubuntu 16.04.2 LTS 3.4.39-h3
- System load: 2.18 Up time: 53 sec
- Memory usage: 15 % of 241Mb IP:
- CPU temp: 53°C
- Usage of /: 10% of 15G
- * Documentation: http://wiki.friendlyarm.com/
- * Forum: http://www.friendlyarm.com/Forum/
- pi@NanoPi-NEO:~$
- pi@NanoPi-NEO:~$
|
正常连接到wifi
复制代码- root@NanoPi-NEO:/home/pi# nmcli dev wifi
- * SSID MODE CHAN RATE SIGNAL BARS SECURITY
- Caiii Infra 6 54 Mbit/s 100 ▂▄▆█ WPA2
- share3 Infra 13 54 Mbit/s 82 ▂▄▆█ WPA1 WPA2
- share Infra 1 54 Mbit/s 72 ▂▄▆_ WPA1 WPA2
- pzb Infra 11 54 Mbit/s 62 ▂▄▆_ WPA1 WPA2
- -- Infra 1 54 Mbit/s 49 ▂▄__
- DIRECT-n1-魅蓝 note 22 Infra 11 54 Mbit/s 49 ▂▄__ WPA2
- hy Infra 1 54 Mbit/s 45 ▂▄__ WPA1 WPA2
- share2 Infra 11 54 Mbit/s 39 ▂▄__ WPA1 WPA2
|
update失败
复制代码- root@NanoPi-NEO:/home/pi# apt-get update
- Hit:1 http://ports.ubuntu.com xenial InRelease
- 0% [Waiting for headers][ 396.002335] Out of memory: Kill process 1261 (apt-get) score 105 or sacrifice child
- [ 396.011068] Killed process 1261 (apt-get) total-vm:39788kB, anon-rss:31584kB, file-rss:1832kB
- Get:2 http://ports.ubuntu.com xenial-security InRelease [102 kB]
- Get:3 http://ports.ubuntu.com xenial-updates InRelease [102 kB]
- Get:4 http://ports.ubuntu.com xenial-backports InRelease [102 kB]
- Get:5 http://ports.ubuntu.com xenial-security/main armhf Packages [298 kB]
- Get:6 http://ports.ubuntu.com xenial-security/main Translation-en [159 kB]
- Get:7 http://ports.ubuntu.com xenial-security/restricted armhf Packages [4,680 B]
- Get:8 http://ports.ubuntu.com xenial-security/restricted Translation-en [2,432 B]
- Get:9 http://ports.ubuntu.com xenial-security/universe armhf Packages [162 kB]
- Get:10 http://ports.ubuntu.com xenial-security/universe Translation-en [89.9 kB]
- Get:11 http://ports.ubuntu.com xenial-security/multiverse armhf Packages [1,444 B]
- Get:12 http://ports.ubuntu.com xenial-updates/main armhf Packages [560 kB]
- Get:13 http://ports.ubuntu.com xenial-updates/main Translation-en [267 kB]
- Get:14 http://ports.ubuntu.com xenial-updates/restricted armhf Packages [4,712 B]
- Get:15 http://ports.ubuntu.com xenial-updates/restricted Translation-en [2,692 B]
- Get:16 http://ports.ubuntu.com xenial-updates/universe armhf Packages [481 kB]
- Get:17 http://ports.ubuntu.com xenial-updates/universe Translation-en [218 kB]
- Get:18 http://ports.ubuntu.com xenial-updates/multiverse armhf Packages [11.1 kB]
- Get:19 http://ports.ubuntu.com xenial-updates/multiverse Translation-en [7,544 B]
- Get:20 http://ports.ubuntu.com xenial-backports/main armhf Packages [4,852 B]
- Get:21 http://ports.ubuntu.com xenial-backports/main Translation-en [3,220 B]
- Get:22 http://ports.ubuntu.com xenial-backports/universe armhf Packages [5,896 B]
- Get:23 http://ports.ubuntu.com xenial-backports/universe Translation-en [3,060 B]
- Fetched 2,593 kB in 1min 12s (35.7 kB/s)
- [ 470.507207] Out of memory: Kill process 1237 (apt-get) score 112 or sacrifice child
- [ 470.515997] Killed process 1237 (apt-get) total-vm:41528kB, anon-rss:33728kB, file-rss:1324kB
- Killed
- root@NanoPi-NEO:/home/pi# df -h
- Filesystem Size Used Avail Use% Mounted on
- udev 40M 0 40M 0% /dev
- tmpfs 25M 2.8M 22M 12% /run
- /dev/mmcblk0p2 15G 1.4G 14G 10% /
- tmpfs 121M 0 121M 0% /dev/shm
- tmpfs 5.0M 4.0K 5.0M 1% /run/lock
- tmpfs 121M 0 121M 0% /sys/fs/cgroup
- /dev/mmcblk0p1 40M 15M 26M 37% /boot
- tmpfs 25M 0 25M 0% /run/user/1000
- root@NanoPi-NEO:/home/pi#
- root@NanoPi-NEO:/home/pi#
- root@NanoPi-NEO:/home/pi# free
- total used free shared buff/cache available
- Mem: 246992 40012 162716 2812 44264 159088
- Swap: 0 0 0
- root@NanoPi-NEO:/home/pi# free -h
- total used free shared buff/cache available
- Mem: 241M 38M 158M 2.7M 43M 155M
- Swap: 0B 0B 0B
|
[ 此帖被jkzxc在2017-10-10 19:50重新编辑 ]