LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   apt-mirror not working (https://www.linuxquestions.org/questions/linux-software-2/apt-mirror-not-working-931254/)

baronobeefdip 02-25-2012 12:37 PM

apt-mirror not working
 
I wanted to create a local debian squeeze software repository and for some reason after running it only one time for a test run I stopped it, now when i try to run it again it comes back and tells me that the program is still running. there is nothing showing on the process manager, the processor is only being used at 1% and the process manager is telling me that the gnome desktop environment is doing it but I don't see the apt-mirror process in there. i also tried to uninstall and reinstall it again and still to no avail. how do i get it to work now since all hope is being lost at this moment

T3RM1NVT0R 02-25-2012 07:34 PM

@ Reply
 
Hi baronobeefdip,

Let us know the exact error message that you get. When you get the error message run the following command and let us know the output:

Code:

ps -eaf | grep apt

baronobeefdip 02-26-2012 11:40 PM

If it matters the debian system i am using was installed with the cd image instead of the dvd and the gnome gui had to be installed from the internet with the apt-get command. the apt-mirror command worked the first time but its showing me this error now so this is a real problem.

the reason why it wasn't installed with the dvd is because the server that it was installed on doesn't have an internal dvd drive nor does it have usb reading capabilities so i had to go with the cd tactic. was this good practice.

T3RM1NVT0R 02-27-2012 02:19 PM

@ Reply
 
No problem in installing it that way if your system has got connection to the internet. As you said that you want to setup a local mirror so that you do not need to go over the internet to get the packages. I would like to know the output of the command I mentioned before. It will be good if you could let me know how you are trying to setup local mirror?

baronobeefdip 02-28-2012 09:15 PM

heres the error after i try an apt-get update
Code:

Get:1 http://dl.google.com stable Release.gpg [198 B]
Ign http://dl.google.com/linux/chrome/deb/ stable/main Translation-en       
Ign http://dl.google.com/linux/chrome/deb/ stable/main Translation-en_US
Get:2 http://dl.google.com stable Release [1,351 B]
Get:3 http://dl.google.com stable/main i386 Packages [1,252 B]               
Ign http://192.168.1.102 squeeze Release.gpg                               
Ign http://192.168.1.102/debian/ squeeze/contrib Translation-en
Ign http://192.168.1.102/debian/ squeeze/contrib Translation-en_US
Ign http://192.168.1.102/debian/ squeeze/main Translation-en
Ign http://192.168.1.102/debian/ squeeze/main Translation-en_US
Ign http://192.168.1.102 squeeze Release
Ign http://192.168.1.102 squeeze/main i386 Packages
Ign http://192.168.1.102 squeeze/contrib i386 Packages
Err http://192.168.1.102 squeeze/main i386 Packages
  403  Forbidden
Err http://192.168.1.102 squeeze/contrib i386 Packages                       
  403  Forbidden
Fetched 2,801 B in 6s (428 B/s)                                               
W: Failed to fetch http://192.168.1.102/debian/dists/squeeze/main/binary-i386/Packages.gz  403  Forbidden

W: Failed to fetch http://192.168.1.102/debian/dists/squeeze/contrib/binary-i386/Packages.gz  403  Forbidden

E: Some index files failed to download, they have been ignored, or old ones used instead.

how do i get the forbidden stuff to go away

T3RM1NVT0R 03-01-2012 07:18 AM

@ Reply
 
Where you have added the local mirror?

Quote:

http://192.168.1.102/debian/ squeeze/contrib Translation-en
Which server is this 192.168.1.102?

baronobeefdip 03-01-2012 09:11 AM

192.168.1.102 is the mirror that i created with apt-mirror, the mirror on the debian website works fine it's just than when i make the mirror locally i get this 403 forbidden error, i think it must be an apache problem but i haven't been able to fix it. the chmod command doesn't work i did it and it no longer gives me a 403 error it gives me a different error now but i can't pull it up right now but if someone knowns what i am talking about that would be greate

ed1023 03-06-2012 12:39 PM

I was getting the same error for my system, what fixed it for me was I had an error in my smlink.


All times are GMT -5. The time now is 04:17 PM.