2009-2 webmin apt install and update error
I have installed joomla 2009-2 appliance and have been working with it. Most of my previous issues were resolved by this install. However, the issue of installing software or upgrading via apt interface in webmin fails.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- scrapcan
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Resynchronizing package list with command apt-get update ..
Err http://
Could not resolve 'archive.
Err http://
Could not resolve 'archive.
Err http://
Could not resolve 'archive.
Err http://
Could not resolve 'archive.
Err http://
Could not resolve 'archive.
Reading package lists...
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
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
.. resynchronization complete.
Upgrading all packages with command apt-get -y -f upgrade ..
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Revision history for this message
|
#2 |
It seems to me like a networking configuration issue, nothing to do with APT. If you could provide a little more information about your setup, it would be easier to help.
ifconfig -a
route -n
cat /etc/resolv.conf
ping www.google.com
ping 209.85.135.147
Did you configure networking or was it done automatically via DHCP?
BTW, if you are using a virual machine, make sure it has access to the hosts network via NAT or bridged networking.
Revision history for this message
|
#3 |
Alon,
My answers to you questions are shown below in blue in the repsective section of your email.
Thank you for your help.
> To: <email address hidden>
> From: <email address hidden>
> Subject: Re: [Question #62637]: 2009-2 webmin apt install and updread error
> Date: Sun, 1 Mar 2009 22:48:45 +0000
>
> Your question #62637 on TurnKey Linux changed:
> https:/
>
> Status: Open => Needs information
>
> Alon Swartz requested for more information:
> It seems to me like a networking configuration issue, nothing to do with
> APT. If you could provide a little more information about your setup, it
> would be easier to help.
>
> ifconfig -a
eth0 Link encap:Ethernet HWaddr mac address deleted by me
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth1 Link encap:Ethernet HWaddr Mac address deleted by me
inet addr:192.168.1.20 Bcast:192.168.1.255
Mask:255.255.255.0
inet6 addr: fe80::250:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2648 errors:0 dropped:0 overruns:0 frame:0
TX packets:3213 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:545402 (532.6 KB) TX bytes:2593164 (2.4 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:40 errors:0 dropped:0 overruns:0 frame:0
TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:2930 (2.8 KB) TX bytes:2930 (2.8 KB)
> route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.1.20 192.168.1.1 255.255.255.255 UGH 0 0 0
eth1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0
eth1
0.0.0.0 192.168.1.1 0.0.0.0 UG 100 0 0
eth1
> cat /etc/resolv.conf
cat: /etc/resolve.conf: No such file or directory
>
> ping www.google.com
Hangs on this ping
> ping 209.85.135.147
hangs on this ping also
>
> Did you configure networking or was it done automatically via DHCP?
I configured networking at install. I gave the appliance a static IP
>
> BTW, if you are using a virual machine, make sure it has access to the
> hosts network via NAT or bridged networking.
The NAT route the static ip works when using the 2008-12 version, but not the 2009-2
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https:/
>
> You received this question notification because you are a direct
> subscriber of the question.
_______
Windows Live™: Life without walls.
http://
Revision history for this message
|
#4 |
The above answers were generated from within the LAN. I just verified the same from outside of the LAN. The server is live and accessible form the internet. I have logged into joomla front end, backend, and webmin. Is this an issue with the resovle.conf file? It appears to be empty?
NAT is working through the firewall and router, I had earlier reported that it was not working see my last statement above related version 2008-12 and 2009-2.
The test box is dedicated to this appliance, the only thing installed ont eh 160gb drive is the turnkey appliance. I installed using the guided full hard drive reformat option. It has two NICs installed. I am currently using only eth1, eth0 is disabled in the confconsole. Shoudl I take out the second NIC, could that be causing an issue?
If I leave the command line running for a longer period of time, ping returns unable to resolve host.
So I will sign off with the above.
Revision history for this message
|
#5 |
oops I forgot one other item.
When I changed the super administrator in Joomla, the server did send out the email to the give email address stating the user had been added. I added a second super administrator and that email address did not receive the corresponding email.
I was not sure if that is helpful or not.
Revision history for this message
|
#6 |
A couple of comments and questions:
- it is /etc/resolv.conf not /etc/resolve.conf (please post the contents)
- you should not have to remove the second NIC
Lets narrow this down, can you ping the gateway from the appliance (ping 192.168.1.1)?
If not, have you configured the local firewall (iptables?).
From your last comment, it seems that the appliance could access the internet to send the email, I'm not sure why the second email was not received. Could you check if it is still in the queue? (ie. "mailq" at the prompt)
Is it possible your firewall (i assume your router) is blocking traffic/specific protocols to the internet?
Revision history for this message
|
#7 |
> mailq
Mail queue is empty
> cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by
resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
Depending on which ports are being used for the various components of the
appliance it is possible that I have restricted some traffic to or from the
router/firewall. I worked on the ports that show up on the config console
in the appliance. I did look at the appliance firewall in webmin to make
sure I did not have things clamped down local. It appears that the
necessary ports are open in the appliance.
What are the list of ports the appliance is trying to use? 12321, 12322,
443, 80, 22?
Now on the ping issue:
I am not at the terminal and thus running the command prompt through webmin.
I can issue commands, but ping will just hang for a considerable length of
time. This indicates to me that there is as an issue, that is what I am
trying to figure out. The long duration of command running in the webmin
window is the same for internal or external pings. Is this an issue with
the route that shows up in the network routing and gateway setup? So that is
a long answer to say no, the ping does not seem to be playing well. Is this
a setting in the local firewall that prevents pings to the box?
Here are contents of the active routes
Destination Gateway Netmask Interface
192.168.1.0 None 255.255.255.0 eth1
Default Route 1 92.168.1.1
eth1
::1 :: 128
lo
fe80:
fe80:: :: 64
eth1
ff00:: :: 8
eth1
:: :: 0
lo
I am new at this so bare with me. I will try to answer the questions asked.
I fyou need something specific you may have to tell me the entire command
string you would like to see the results. Example, I was not sure if the
cat command would give you what you want for the etc/resolv.conf file or if
you wanted me to open the file in an editor and copy the contents, I was
under the impression that the cat command returned the contents of the file
to the output in the terminal, is that correct?
I am new at this so bare with me.
-------
From: "Alon Swartz" <email address hidden>
Sent: Tuesday, March 03, 2009 10:19 AM
To: <email address hidden>
Subject: RE: [Question #62637]: 2009-2 webmin apt install and updread error
> Your question #62637 on TurnKey Linux changed:
> https:/
>
> Status: Open => Needs information
>
> Alon Swartz requested for more information:
> A couple of comments and questions:
>
> - it is /etc/resolv.conf not /etc/resolve.conf (please post the contents)
> - you should not have to remove the second NIC
>
> Lets narrow this down, can you ping the gateway from the appliance (ping
> 192.168.1.1)?
> If not, have you configured the local firewall (iptables?).
>
>>From your last comment, it seems that the appliance could access the
> internet to send the email, I'm not sure why the second email was not
> received. Could you check if it is still in the queue? (ie. "mailq" at
> the prompt)
>
> Is it possible your firewall (i assume your router) is blocking
> traffic/specific protocols to the internet?
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https:/
>
> You received this question notification because you are a direct
> subscriber of the question.
>
Revision history for this message
|
#8 |
I just want to be sure, so correct me if I'm wrong.
From the appliance you are not able to ping your default gateway (192.168.1.1) or any other machine on the LAN?
But you are able to connect to the appliance over the LAN?
Which means:
Incoming traffic: yes
Outgoing traffic: no
If the above is correct, please make sure that iptables is not filtering outgoing traffic, and try again.
# iptables -t filter -P OUTPUT ACCEPT
Revision history for this message
|
#9 |
If I am local I can ping the default gateway. I also get info when I cat resolv.conf when running from server command prompt at terminal.
Both will not work when outside the lan(i.e. remote over the internet using command prompt in webmin.
When I look at the firewall setting in webmin (and for the firewall at the gateway appliance) incoming and outgoing are both allowed.
I can hit the server from outside the lan. I can log in to joomla backend, hit the front end, and log in to webmin.
I have not been able to add software or run update.
When I set up one super admin in joomla it sent an email and I received it, the second super admin did not receive an email.
I am sure with your help we will be able to solve my issues.
I am very excited about you apliance and hope it will work out for me. I needed a quick replacement to keep a site up and to allow users to learn joomla, while I build a full replacement server that will do allow virtual hosts. I will be trying to do this through this project, since it is ubuntu based.
Thanks for the help. I will report back.
Revision history for this message
|
#10 |
Are we talking about one machine, or two different machines?
Revision history for this message
|
#11 |
This is a single server install that is being accessed via local, network (lan based), and internet.
Revision history for this message
|
#12 |
This is a single server install that is being accessed via local, network (lan based), and internet.
Revision history for this message
|
#13 |
I'm confused, so excuse me if I repeat myself...
You log in locally (physically sitting at the machine) and you *can* ping the gateway.
You log in over the local network (via webmin/ssh) and you *can* ping the gateway.
You log in over the internet (via webmin/ssh) but you *cannot* ping the gateway.
Is the above accurate?
Revision history for this message
|
#14 |
The above is correct.
The main thing is apt will not see the archives for updates. I need to install some additional software.
I tis also interesting to note that I just reinstalled the applpiance and when I set the new user in joomla it sends out one email but not the other.
Oh well I will keep learning and trying to get the appliance working. If not in the near future I will just load ubuntu server and configure things myself.
Revision history for this message
|
#15 |
This is really really strange, and makes no sense to me.
It shouldn't make a difference how you "connect" to the server, if its configured then its configured.
If you want, open up ssh from the internet to the appliance, and email me directly with login credentials and I'll take a look.
Revision history for this message
|
#16 |
Alon,
I would be glad to have you look at. I have done a fresh install. It can be accessed via internet. You will need to tell me how to email you as I have not found your direct email. I it the bounce email that comes through with the help ticket emails?
Revision history for this message
|
#17 |
My email address can be found on my profile page: https:/
Anyway, it is alon [at] turnkeylinux.org
Revision history for this message
|
#18 |
Alon,
Thanks for the the help. It looks like the appliance is working as designed. It most liekly was operator error on my part. Onward and upward. I am learning as I go.