Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
apt-get fails
I am trying to setup lighttpd on a power pmac. I have the power pmac connected to the web through a DNS server and I can ping successfully from the pp. When I try to do an
apt-get update
apt-get build-dep lighttpd
I get a long list of error messages about not being able to resolve the
sample error message.
Err lenny/main libglib2.0-0 2.16.6-2
Could not resolve ''

I have tried pinging this server from my mac as well as the pp and I am unable to reach it from either machine.

I have the source code for lighttpd but when i try to run the configuration program it give me the following error
configure: error: pcre-config not found, install the pcre-devel package or build with --without-pcre

I am in the process of setting up lighttpd to host a cgi webpage programmed in C++ so I could probably compile without pcre as it is related to pearl but i would like to build it with pearl support.
I think this forum link below is the same problem I am seeing. I don't know how I would go about changing the update source as it suggest in the link below or if it is a good idea.

Here is the output from my apt-get update it looks to be the same issue discussed in the link above. apt-get update
Ign lenny/updates Release.gpg
Ign lenny/updates/main Translation-en_US
Ign lenny/updates Release
Ign lenny/updates/main Packages/DiffIndex
Ign lenny/updates/main Sources/DiffIndex
Err lenny Release.gpg
Could not resolve ''
Err lenny/main Translation-en_US
Could not resolve ''
Ign lenny/updates/main Packages
Ign lenny/updates/main Sources
Ign lenny/updates/main Packages
Ign lenny/updates/main Sources
Err lenny/updates/main Packages
404 Not Found [IP: 80]
Err lenny/updates/main Sources
404 Not Found [IP: 80]
Ign lenny/volatile Release.gpg
Ign lenny/volatile/main Translation-en_US
Ign lenny/volatile Release
Ign lenny/volatile/main Packages/DiffIndex
Ign lenny/volatile/main Sources/DiffIndex
Ign lenny/volatile/main Packages
Ign lenny/volatile/main Sources
Ign lenny/volatile/main Packages
Ign lenny/volatile/main Sources
Err lenny/volatile/main Packages
301 Moved Permanently [IP: 80]
Err lenny/volatile/main Sources
301 Moved Permanently [IP: 80]
Reading package lists... Done
W: Failed to fetch Could not resolve ''

W: Failed to fetch Could not resolve ''

W: Failed to fetch 404 Not Found [IP: 80]

W: Failed to fetch 404 Not Found [IP: 80]

W: Failed to fetch 301 Moved Permanently [IP: 80]

W: Failed to fetch 301 Moved Permanently [IP: 80]

W: Some index files failed to download, they have been ignored, or old ones used instead.
W: You may want to run apt-get update to correct these problems
This thread may help you out:
Thanks shansen that looks like the information I need.
I am a little feather along now. When I made the change listed in the other thread I was able to get it to start an update but I ended up with an error need to add sources to source.list. I found a debian source list generator below but i don't know which version of debian is the correct one to build a source list for. My concern is that i don't want to have the update try to update the kernel by mistake.
1.) Make your disk writable

mount -o remount,rw /

2.) Next you must update the repository list file. Debian lenny is used on a 460 CPU so you must change the repositories to

deb lenny main non-free contrib
deb-src lenny main non-free contrib
deb lenny/updates main non-free contrib
deb-src lenny/updates main non-free contrib

The sources.list file placed in /etc/apt should look like what is above

3.) next issue the apt-get update command to reload the repositories. You can disregard the KEYEXPIRED warning message that comes back

4.) next issue the apt-get install lighttpd command to install lighttpd

lighttpd is now installed.

5.) Make sure the modifications from the apt-get install command make it to the readonly etc folder. Do this by issuing the following command

cp -a /.readonly/etc-tmpfs-mirror/* /.readonly/etc/

6.) Put the disk back to readonly mode
mount -o remount,ro /
Thanks Henry that worked I can now use the apt get again.
Henry I have to change the port for lighttpd to port 81. There is a program mono listening on port 80. Any idea what mono is and why it would be listening on port 80? I ask because 80 is the default http port so it would be nice to put the web server on 80 but I don't know what mono is or why it would be on port 80.

Forum Jump:

Users browsing this thread: 1 Guest(s)