LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-20-2014, 06:31 AM   #1
Kampi
LQ Newbie
 
Registered: Nov 2014
Posts: 2

Rep: Reputation: Disabled
Problem with APT on my Zynq-Board with a custom rootfs


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
 
Old 11-20-2014, 01:43 PM   #2
Kampi
LQ Newbie
 
Registered: Nov 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hello,

I got this error now:

Code:
root@Zybo:~# apt-get update
Ign http://de.archive.ubuntu.com trusty InRelease
Get:1 http://de.archive.ubuntu.com trusty Release.gpg [933 B]
Get:2 http://de.archive.ubuntu.com trusty Release [58.5 kB]
Ign http://de.archive.ubuntu.com trusty Releaseed in /etc/apt/trusted.gpg.d/.
Get:3 http://de.archive.ubuntu.com trusty/main Sources [1064 kB]
Get:4 http://de.archive.ubuntu.com trusty/restricted Sources [5433 B]
Get:5 http://de.archive.ubuntu.com trusty/universe Sources [6399 kB]
Get:6 http://de.archive.ubuntu.com trusty/multiverse Sources [174 kB]
Get:7 http://de.archive.ubuntu.com trusty/main Translation-en [762 kB]
Get:8 http://de.archive.ubuntu.com trusty/multiverse Translation-en [102 kB]
Get:9 http://de.archive.ubuntu.com trusty/restricted Translation-en [3457 B]
Get:10 http://de.archive.ubuntu.com trusty/universe Translation-en [4089 kB]
Err http://de.archive.ubuntu.com trusty/main ${DPKG_ARCH} Packages
  404  Not Found [IP: 141.30.13.20 80]
Err http://de.archive.ubuntu.com trusty/restricted ${DPKG_ARCH} Packages
  404  Not Found [IP: 141.30.13.20 80]
Err http://de.archive.ubuntu.com trusty/universe ${DPKG_ARCH} Packages
  404  Not Found [IP: 141.30.13.20 80]
Err http://de.archive.ubuntu.com trusty/multiverse ${DPKG_ARCH} Packages
  404  Not Found [IP: 141.30.13.20 80]
Fetched 12.7 MB in 34s (367 kB/s)                                              
W: GPG error: http://de.archive.ubuntu.com trusty Release: Could not execute 'gpgv' to verify signature (is gpgv installed?)
W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/trusty/main/binary-${DPKG_ARCH}/Packages  404  Not Found [IP: 141.30.13.20 80]

W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/trusty/restricted/binary-${DPKG_ARCH}/Packages  404  Not Found [IP: 141.30.13.20 80]

W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/trusty/universe/binary-${DPKG_ARCH}/Packages  404  Not Found [IP: 141.30.13.20 80]

W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/trusty/multiverse/binary-${DPKG_ARCH}/Packages  404  Not Found [IP: 141.30.13.20 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.
ses.ubuntu.com/g' /etc/apt/sources.listubuntu.com\|security.ubuntu.com/old-relea 
ses.ubuntu.com/g' /etc/apt/sources.list.d/official-package-repositories.listelea 
root@Zybo:~# sudo sed -i -e 's/archive.ubunt^Ccom\|security.ubuntu.com/old-reler directory
root@Zybo:~# ^Cg' /etc/apt/sources.list.d/official-package-repositories.listeleas
ses.ubuntu.com/g' /etc/apt/sources.list.d/official-package-repositories.listelea 
buntu.com/g' /etc/apt/sources.list.d/official-source-repositories.listreleases.u 
sed: /etc/apt/sources.list.d/official-source-repositories.list: No such file or directory
root@Zybo:~# vi /etc/apt/sources.list
root@Zybo:~# ls /etc/apt/sources.list.d/
root@Zybo:~# apt-get update
Err http://de.old-releases.ubuntu.com trusty InRelease
  
Err http://de.old-releases.ubuntu.com trusty Release.gpg
  Could not resolve 'de.old-releases.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://de.old-releases.ubuntu.com/ubuntu/dists/trusty/InRelease  

W: Failed to fetch http://de.old-releases.ubuntu.com/ubuntu/dists/trusty/Release.gpg  Could not resolve 'de.old-releases.ubuntu.com'

W: Some index files failed to download. They have been ignored, or old ones used instead.
root@Zybo:~# cd /etc/apt/sources.list.d/
root@Zybo:/etc/apt/sources.list.d# ls  
official-package-repositories.list  official-source-repositories.list
root@Zybo:/etc/apt/sources.list.d# rm official-package-repositories.list 
root@Zybo:/etc/apt/sources.list.d# rm official-source-repositories.list  
root@Zybo:/etc/apt/sources.list.d# apt-get update
Err http://de.old-releases.ubuntu.com trusty InRelease
  
Err http://de.old-releases.ubuntu.com trusty Release.gpg
  Could not resolve 'de.old-releases.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://de.old-releases.ubuntu.com/ubuntu/dists/trusty/InRelease  

W: Failed to fetch http://de.old-releases.ubuntu.com/ubuntu/dists/trusty/Release.gpg  Could not resolve 'de.old-releases.ubuntu.com'

W: Some index files failed to download. They have been ignored, or old ones used instead.
root@Zybo:~# vi /etc/apt/sources.list
root@Zybo:~# vi /etc/apt/sources.list
root@Zybo:~# apt-get update
E: Type 'lso,' is not known on line 1 in source list /etc/apt/sources.list
E: The list of sources could not be read.
root@Zybo:~# vi /etc/apt/sources.list
root@Zybo:~# apt-get update
Ign http://archive.canonical.com natty InRelease
Get:1 http://archive.canonical.com natty Release.gpg [198 B]
Get:2 http://archive.canonical.com natty Release [5916 B]                      
100% [2 Release gpgv 5916 B] [Waiting for headers]No keyring installed in /etc/apt/trusted.Ign http://archive.canonical.com natty Release    
Get:3 http://archive.canonical.com natty/partner Sources [4080 B]
Ign http://us.archive.ubuntu.com natty-backports InRelease
Ign http://us.archive.ubuntu.com natty-backports Release.gpg
Ign http://us.archive.ubuntu.com natty-backports Release
Err http://us.archive.ubuntu.com natty-backports/main Sources
  404  Not Found [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com natty-backports/restricted Sources
  404  Not Found [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com natty-backports/universe Sources
  404  Not Found [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com natty-backports/multiverse Sources
  404  Not Found [IP: 91.189.91.13 80]
Fetched 10.2 kB in 2s (3612 B/s)
W: GPG error: http://archive.canonical.com natty Release: Could not execute 'gpgv' to verify signature (is gpgv installed?)
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/natty-backports/main/source/Sources  404  Not Found [IP: 91.189.91.13 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/natty-backports/restricted/source/Sources  404  Not Found [IP: 91.189.91.13 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/natty-backports/universe/source/Sources  404  Not Found [IP: 91.189.91.13 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/natty-backports/multiverse/source/Sources  404  Not Found [IP: 91.189.91.13 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.
root@Zybo:~# vi /etc/apt/sources.list
root@Zybo:~# vi /etc/apt/sources.list
root@Zybo:~# vi /etc/apt/sources.list
root@Zybo:~# apt-get update
Ign http://security.ubuntu.com quantal-security InRelease
Ign http://security.ubuntu.com quantal-security Release.gpg
Ign http://security.ubuntu.com quantal-security Release
Err http://security.ubuntu.com quantal-security/main ${DPKG_ARCH} Packages
  404  Not Found [IP: 91.189.92.200 80]
Ign http://mirrors.digitalocean.com quantal InRelease
Ign http://security.ubuntu.com quantal-security/main Translation-en
Ign http://mirrors.digitalocean.com quantal-updates InRelease
Ign http://mirrors.digitalocean.com quantal Release.gpg
Ign http://mirrors.digitalocean.com quantal-updates Release.gpg
Ign http://mirrors.digitalocean.com quantal Release
Ign http://mirrors.digitalocean.com quantal-updates Release
Err http://mirrors.digitalocean.com quantal/main ${DPKG_ARCH} Packages
  404  Not Found [IP: 192.241.164.26 80]
Err http://mirrors.digitalocean.com quantal/universe ${DPKG_ARCH} Packages
  404  Not Found [IP: 192.241.164.26 80]
Ign http://mirrors.digitalocean.com quantal/main Translation-en
Ign http://mirrors.digitalocean.com quantal/universe Translation-en
Err http://mirrors.digitalocean.com quantal-updates/main ${DPKG_ARCH} Packages
  404  Not Found [IP: 192.241.164.26 80]
Err http://mirrors.digitalocean.com quantal-updates/universe ${DPKG_ARCH} Packages
  404  Not Found [IP: 192.241.164.26 80]
Ign http://mirrors.digitalocean.com quantal-updates/main Translation-en
Ign http://mirrors.digitalocean.com quantal-updates/universe Translation-en
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/quantal-security/main/binary-${DPKG_ARCH}/Packages  404  Not Found [IP: 91.189.92.200 80]

W: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/quantal/main/binary-${DPKG_ARCH}/Packages  404  Not Found [IP: 192.241.164.26 80]

W: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/quantal/universe/binary-${DPKG_ARCH}/Packages  404  Not Found [IP: 192.241.164.26 80]

W: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/quantal-updates/main/binary-${DPKG_ARCH}/Packages  404  Not Found [IP: 192.241.164.26 80]

W: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/quantal-updates/universe/binary-${DPKG_ARCH}/Packages  404  Not Found [IP: 192.241.164.26 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.
I take this for my Sources:

Code:
deb http://mirrors.digitalocean.com/ubuntu quantal main
deb http://mirrors.digitalocean.com/ubuntu quantal-updates main
deb http://security.ubuntu.com/ubuntu quantal-security main
deb http://mirrors.digitalocean.com/ubuntu quantal universe
deb http://mirrors.digitalocean.com/ubuntu quantal-updates universe
I don't know whats the problem is...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] is it needed to flash kernel image and rootfs image separately in embedded board? ayyasprings Linux - Embedded & Single-board computer 11 10-16-2014 09:31 AM
U-boot autoconfig for custom board jaepi Linux - Embedded & Single-board computer 0 02-17-2011 11:47 PM
USE of ALSA to play audio on custom board manish_jc Linux - Embedded & Single-board computer 1 06-02-2010 06:11 AM
Custom apt-repository for sid apt-get upgrades Cyberman Debian 1 02-20-2009 12:21 PM
Installing custom serial ISA board boisseaud Linux - Hardware 2 03-21-2002 09:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration