시스템 처음 설치시 apt-get upgrade에러 대처
현재(2017_08_20) Win32DiskImager 1.0으로 "Ubuntu server – legacy kernel(Armbian_5.30_Orangepizero_Ubuntu_xenial_default_3.4.113)"설치시 아래와 같은 에러가 나옴!    참고




현재(2017_08_20) Etcher로 "Ubuntu server – legacy kernel(Armbian_5.30_Orangepizero_Ubuntu_xenial_default_3.4.113)"설치시 아래와 같은 에러가 나옴!





























*현재(2017_08_20) Win32DiskImager로 설치시 upgrade가 원할하지 않은 듯 함!

*현재(2017_09_07)처음 시작후 root 암호 설정을 마친후 "꼭" reboot를 한후 apt upgrade를 하면 문제가 없이됨!

 
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@OP_test:~# 

 
[ 0 security updates available, 6 updates total: apt upgrade ]
Last check: 2017-08-20 10:04

[ General system configuration: armbian-config ]
Last login: Sun Aug 20 10:02:29 2017 from 192.168.112.2

root@OP_test:~# apt upgrade
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? 
root@OP_test:~# apt-get update
Hit:1 http://ports.ubuntu.com xenial InRelease
Hit:2 http://ports.ubuntu.com xenial-security InRelease
Hit:3 http://apt.armbian.com xenial InRelease
Hit:4 http://ports.ubuntu.com xenial-updates InRelease
Hit:5 http://ports.ubuntu.com xenial-backports InRelease
Reading package lists... Done
root@OP_test:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  apt apt-transport-https apt-utils base-files bind9-host binutils bsdutils
  btrfs-tools coreutils dnsutils git git-man hostapd kmod less libapt-inst2.0
  libapt-pkg5.0 libasn1-8-heimdal libbind9-140 libblkid1 libc-bin libc-dev-bin
  libc6 libc6-dev libdns-export162 libdns162 libexpat1 libfdisk1 libgcrypt20
                               
  linux-headers-sun8i linux-image-sun8i linux-libc-dev
  linux-u-boot-orangepizero-default linux-xenial-root-orangepizero locales
  logrotate mount multiarch-support mysql-common ntp openssl sudo sunxi-tools
  systemd systemd-sysv udev unattended-upgrades util-linux vlan
77 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
E: Could not get lock /var/cache/apt/archives/lock - 
open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/cache/apt/archives/ 
**아래 명령으로 수정해줌!**
root@OP_test:~#rm -rf /var/lib/dpkg/lock
root@OP_test:~#apt-get autoclean $$ apt-get clear cache
Reading package lists... Done
Building dependency tree
Reading state information... Done
root@OP_test:~#reboot   다시 시작후 upgrade 실행
 

==================
************************************

댓글 없음:

댓글 쓰기