Berikut ini log waktu install/upgrade dengan apt-get

The following packages will be upgraded:
  automake base-files bind9-host dnsutils e2fslibs e2fsprogs gnupg gpgv
  libbind9-90 libc-bin libc-dev-bin libc6 libc6-dev libcomerr2
  libdns-export100 libdns100 libirs-export91 libisc-export95 libisc95
  libisccc90 libisccfg-export90 libisccfg90 liblwres90 libmysqlclient18
  libpam-systemd libpython2.7-minimal libpython2.7-stdlib libsqlite3-0 libss2
  libssl-dev libssl1.0.0 libsystemd0 libudev1 libxml2 locales
  multiarch-support mysql-common openssl python2.7 python2.7-minimal systemd
  systemd-sysv udev wget wpasupplicant
45 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@orangepipcplus:~# apt-get clean all
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the download directory</blockquote>

Solusi

Solusi adalah menghapus file dibawah ini

rm -f /var/lib/dpkg/lock
rm -fr /var/cache/apt/archives/lock

lalu update file cache apt-get

apt-get update; apt-get upgrade -y

Leave a comment

Your email address will not be published. Required fields are marked *