Hello Guys,
yesterday I make a custom rootfs with Hob (Yocto Project) for my Zybo.
With this Image I want use the APT-Tool.
First I got this error:
E: Could not open file /var/lib/dpkg/status - open (2: No such file or directory)
E: The package lists or status file could not be parsed or opened.
For this I write a solution in /etc/init.d:
Code:
#!/bin/bash
case "$1" in
start)
# Anweisungen zum Starten hier eingeben
touch /var/lib/dpkg/status
mkdir /tmp/dpkg
ln -s /tmp/dpkg /var/lib/dpkg/
;;
*)
echo "Usage: $0 {start|stop|restart}"
;;
esac
The idea is to link the status-file into the /tmp-Dir on my SD-Card (because the file /var/lib/dpkg/status is stored in RAM by default).
This solution works - the error doenīt appear anymore.
Is this a good solution or do you know a better one?
But I have a second task too..
I donīt have any sources for the sources.list. Which Sources can I use? I use some sources and got this errors all the time:
Code:
Get:25 http://de.archive.ubuntu.com trusty-updates/main Sources [138 kB]
Get:26 http://de.archive.ubuntu.com trusty-updates/restricted Sources [1408 B]
Get:27 http://de.archive.ubuntu.com trusty-updates/universe Sources [90.7 kB]
Get:28 http://de.archive.ubuntu.com trusty-updates/multiverse Sources [3536 B]
Get:29 http://de.archive.ubuntu.com trusty-updates/main Translation-en [162 kB]
Get:30 http://de.archive.ubuntu.com trusty-updates/multiverse Translation-en [4719 B]
Get:31 http://de.archive.ubuntu.com trusty-updates/restricted Translation-en [1736 B]
Get:32 http://de.archive.ubuntu.com trusty-updates/universe Translation-en [110 kB]
Get:33 http://de.archive.ubuntu.com trusty-backports/main Sources [4760 B]
Get:34 http://de.archive.ubuntu.com trusty-backports/restricted Sources [14 B]
Get:35 http://de.archive.ubuntu.com trusty-backports/universe Sources [16.5 kB]
Get:36 http://de.archive.ubuntu.com trusty-backports/multiverse Sources [1883 B]
Get:37 http://de.archive.ubuntu.com trusty-backports/main Translation-en [4216 B]
Get:38 http://de.archive.ubuntu.com trusty-backports/multiverse Translation-en [776 B]
Get:39 http://de.archive.ubuntu.com trusty-backports/restricted Translation-en [14 B]
Get:40 http://de.archive.ubuntu.com trusty-backports/universe Translation-en [15.7 kB]
Err http://de.archive.ubuntu.com trusty/main ${DPKG_ARCH} Packages
404 Not Found [IP: 141.30.13.10 80]
Err http://de.archive.ubuntu.com trusty/restricted ${DPKG_ARCH} Packages
404 Not Found [IP: 141.30.13.10 80]
Err http://de.archive.ubuntu.com trusty/universe ${DPKG_ARCH} Packages
404 Not Found [IP: 141.30.13.10 80]
Err http://de.archive.ubuntu.com trusty/multiverse ${DPKG_ARCH} Packages
404 Not Found [IP: 141.30.13.10 80]
Err http://de.archive.ubuntu.com trusty-updates/main ${DPKG_ARCH} Packages
404 Not Found [IP: 141.30.13.10 80]
Err http://de.archive.ubuntu.com trusty-updates/restricted ${DPKG_ARCH} Packages
404 Not Found [IP: 141.30.13.10 80]
Err http://de.archive.ubuntu.com trusty-updates/universe ${DPKG_ARCH} Packages
404 Not Found [IP: 141.30.13.10 80]
Err http://de.archive.ubuntu.com trusty-updates/multiverse ${DPKG_ARCH} Packages
404 Not Found [IP: 141.30.13.10 80]
Err http://de.archive.ubuntu.com trusty-backports/main ${DPKG_ARCH} Packages
404 Not Found [IP: 141.30.13.10 80]
If I want to use "apt-get upgrade" nothing happens...
I donīt know Linux very well, so I canīt find a solution for this problem.
Maybe you can help me
Thank you very much!
Greetings
Daniel