apt-get update/upgrade
I ran an apt-get update and apt-get upgrade to see if any of my software has newer versions, and it's installing a HUGE amount of stuff in my system. It's beeing going on for almost half an hour. Is this normal? I was also promped for really weird stuff I had no clue what it was talking about, so I just hit cancel, but the install keeps going on. I just hope this won't trash the system since I did not image it before doing this. I figured it would of only did what it usually does and upgrade a few packages here and there.
|
It can be very normal, in a new install or one that has not had apt-get upgrade done recently. It may trash your system, but it is not likely unless you are running sid (and even then it isn't that common).
|
Only noticable thing is after the reboot it said my /etc/fetchmailrc file was missing. But that's because I got the error, I just hope nothing else did not get deleted. I think I'll put one of my sys backups asside just in case...
SHIT! It freaken blew my mail server... that's the most complicated thing to setup too. this sucks... I know not to do an apt-get upgrade again... It just randomly does stuff to the system without my knowledge. That's not cool. |
Is postfix an SMTP server? Since I use dovecot as my smtp but noticed postfix is running. I can't remember if it's suppost to be running or not, mail is probably one of the most confusing protocols due to the amount of server apps required for it to work, so I just don't know anymore what's suppost to be running.
|
apt-get upgrade without arguements like package names, updates every package on the system that has a newer version available. Before getting too deep into debian system administration, you really should read the apt-get how to.
http://www.debian.org/doc/manuals/ap.../index.en.html Postfix is a mail server, and a good one in my opinion. See http://www.postfix.org/ Start at the beginning. What is the job of this server? |
I know it's a mail server, but what does it do, SMTP or POP3? Since I think I have two SMTP servers running and they're running into each other. That's how it was when I first installed debian and I had to delete one from all the rc folders, took nearly a week to get it all cleared out since there was so much junk it had to startup. But according to ps aux dovecot is running, maybe the upgrade botched the config file the same way it tried to do to my smb.conf file, but I happened to have it open in vim so I just made sure to save it again. I think what this "upgrade" did is change all the config back to default. All I can say, I'm definatly not trying that trick again.
|
Once the downloading phase of an apt-get upgrade is complete, you should see a bunch of questions asking whether you want to keep your version of the config files, or use the developers versions. I think that is where you hit cancel.
A better way of reducing the clutter. You have a mail server dovecot right? So you don't need postfix, or sendmail, or exim so you type the following at the prompt. apt-get remove postfix apt-get remove sendmail apt-get remove exim That will get rid of the conflicting mail servers, or any other package you want rid of. To find out which version of debian you are running, type the following cat /etc/apt/sources.list and look for the words Sarge (or Stable) Etch (or Testing) Sid (or Unstable) Those are the three current versions of Debian. The first two are subject to change, but not very often. :D Oh yeah, and fetchmail is a pop3 mail retriever, Sendmail, Postfix, and Exim are SMTP servers. |
Crap that question again, what is it talking about?! All I want to do is uninstall postfix.
Code:
Locale is a framework to switch between multiple languages for users who x [ ] aa_DJ ISO-8859-1 # x x [ ] aa_ER@saaho UTF-8 a x x [ ] aa_ER UTF-8 a x x [ ] aa_ET UTF-8 a x That goes on for miles It also screwed up dovecot, since even when I start it, it wont listen on any port. Is there a way to reverse all this mess? |
Dovecot probably can't bind to port 25 (if it is an SMTP server) because one of the other mail servers has it. The locales question would be easier to help you with if you put your location in your profile. It wants to know where you are so it can gear things for your location. Look down the list for your countries initials.
|
But why does it need to know where I live and what is it going to do? All I want is to delete postfix, as it will be faster then having to delete all the entries in the /etc/rc[x] folders like I had previously done at first. But even with postfix killed, dovecot still won't run. If I remember well, I had to edit some host file to allow IPs to relay, and the "upgrade" probably deleted that file too... with my luck, the backup most of ran right after since I can't find any of the missing files, and for some reason the backup of /etc/ was not set to rotate on a period of 5 days like all my other backups...
|
It needs to know what language you use etc, because it is trying to finish the locales installation you triggered by upgrading the entire system. Answer it and it will go away.
Is there an error when you start dovecot? What does /var/log/messages say? You need to take this slower. I know how it feels to have a configured server go south, but it will only make things worse if you panic and rush through this. Once the other packages that downloaded finish their upgrades you will be back at a prompt. Then you can get things fixed. Until then just try to read and answer each of the questions, they will only ask them once. |
No errors, it just does not listen on the port at all. Now that I think of it, I rather not uninstall postfix because it has a sendmail replacement which php mail() uses... well I never got php mail() to work but at least it's there for if ever I managed to get it working.
Oh and btw my debian version is SARGE, if it helps. |
I'm trying to install exim to see if I get luck... at this point, I don't care what smtp server I have, as long as I can send mail, and really it's even stopping me from receiving as fetchmail uses smtp to deliver to the mail boxes.
But even exim is asking me that locale question. What am I suppost to put? It's just a bunch of weird packages, I have no clue what to put, and I assume if I put the wrong one it will install some other language then English. I don't even know why it needs this, I always figured a mail server handled mail in "raw" mode, not caring what language it's in. |
Run ps -A and see if it (dovecot) is running at all. Also look for smtp or postfix/sendmail etc. If nothing is listening on port 25 (telnet to the external ip at port 25 and type HELO) then try to start dovecot again. When/if it fails type tail /var/log/messages and see if dovecot is mentioned.
One more thing on package management in Debian. If the command-line apt-get is a bit much for you at this point, and you have a GUI installed on the server, type apt-get install synaptic and get a very cool front-end for apt that will make that a lot easier on you. |
dovecot runs, but can't connect to 25 externally or locally, If I do a netstat -la, same thing, nothing listening on 25. It's really messed up.
root 1 0.2 0.0 1492 508 ? S 21:44 0:02 init [2] root 2 0.0 0.0 0 0 ? S 21:44 0:00 [keventd] root 3 0.0 0.0 0 0 ? SN 21:44 0:00 [ksoftirqd_CPU0] root 4 0.0 0.0 0 0 ? S 21:44 0:00 [kswapd] root 5 0.0 0.0 0 0 ? S 21:44 0:00 [bdflush] root 6 0.0 0.0 0 0 ? S 21:44 0:00 [kupdated] root 99 0.0 0.0 0 0 ? S 21:44 0:00 [kjournald] root 241 0.0 0.0 0 0 ? S 21:44 0:00 [kjournald] root 242 0.0 0.0 0 0 ? S 21:44 0:00 [kjournald] root 243 0.0 0.0 0 0 ? S 21:44 0:00 [kjournald] root 359 0.0 0.0 0 0 ? S 21:44 0:00 [knodemgrd_0] root 496 0.0 0.0 0 0 ? S 21:44 0:00 [khubd] daemon 1223 0.0 0.0 1608 448 ? Ss 21:45 0:00 /sbin/portmap root 1372 0.1 4.8 28280 25104 ? S 21:45 0:01 /usr/bin/perl -T -w /usr/sbin/spamd root 1390 0.0 0.1 2244 804 ? Ss 21:45 0:00 /sbin/syslogd root 1393 0.0 0.2 2180 1252 ? Ss 21:45 0:00 /sbin/klogd bind 1401 0.0 0.5 11280 2860 ? Ss 21:45 0:00 /usr/sbin/named -u bind bind 1403 0.0 0.5 11280 2860 ? S 21:45 0:00 /usr/sbin/named -u bind bind 1404 0.0 0.5 11280 2860 ? S 21:45 0:00 /usr/sbin/named -u bind bind 1405 0.0 0.5 11280 2860 ? S 21:45 0:00 /usr/sbin/named -u bind bind 1406 0.0 0.5 11280 2860 ? S 21:45 0:00 /usr/sbin/named -u bind root 1412 0.0 0.4 11184 2500 ? Ss 21:45 0:00 /usr/sbin/lwresd root 1413 0.0 0.4 11184 2500 ? S 21:45 0:00 /usr/sbin/lwresd root 1414 0.0 0.4 11184 2500 ? S 21:45 0:00 /usr/sbin/lwresd root 1415 0.0 0.4 11184 2500 ? S 21:45 0:00 /usr/sbin/lwresd root 1416 0.0 0.4 11184 2500 ? S 21:45 0:00 /usr/sbin/lwresd root 1430 0.0 0.1 2220 724 ? Ss 21:45 0:00 /usr/sbin/inetd lp 1434 0.0 0.1 2452 872 ? Ss 21:45 0:00 /usr/sbin/lpd -s root 1448 0.0 0.3 5992 1960 ? Ss 21:45 0:00 /usr/sbin/nmbd -D root 1450 0.0 0.5 8332 2672 ? Ss 21:45 0:00 /usr/sbin/smbd -D root 1455 0.0 0.5 8332 2652 ? S 21:45 0:00 /usr/sbin/smbd -D root 1457 0.0 0.2 3720 1548 ? Ss 21:45 0:00 /usr/sbin/sshd root 1473 0.0 0.1 2368 928 ? Ss 21:45 0:00 /sbin/rpc.statd root 1478 0.0 0.1 1760 832 ? Ss 21:45 0:00 /usr/sbin/cron root 1483 0.0 4.8 28280 25104 ? S 21:45 0:00 spamd child root 1484 0.0 4.8 28280 25104 ? S 21:45 0:00 spamd child root 1485 0.0 4.8 28280 25104 ? S 21:45 0:00 spamd child root 1486 0.0 4.8 28280 25104 ? S 21:45 0:00 spamd child root 1487 0.0 4.8 28280 25104 ? S 21:45 0:00 spamd child root 1493 0.0 1.5 16932 8036 ? Ss 21:45 0:00 /usr/sbin/apache2 -k start -DSSL root 1503 0.0 0.0 1484 476 tty1 Ss+ 21:45 0:00 /sbin/getty 38400 tty1 root 1504 0.0 0.0 1484 476 tty2 Ss+ 21:45 0:00 /sbin/getty 38400 tty2 root 1505 0.0 0.0 1484 476 tty3 Ss+ 21:45 0:00 /sbin/getty 38400 tty3 root 1506 0.0 0.0 1484 476 tty4 Ss+ 21:45 0:00 /sbin/getty 38400 tty4 root 1507 0.0 0.0 1484 476 tty5 Ss+ 21:45 0:00 /sbin/getty 38400 tty5 root 1508 0.0 0.0 1484 476 tty6 Ss+ 21:45 0:00 /sbin/getty 38400 tty6 www-data 1509 0.0 1.5 17064 8172 ? S 21:45 0:00 /usr/sbin/apache2 -k start -DSSL www-data 1510 0.0 1.5 17064 8168 ? S 21:45 0:00 /usr/sbin/apache2 -k start -DSSL www-data 1511 0.0 1.5 16932 8064 ? S 21:45 0:00 /usr/sbin/apache2 -k start -DSSL www-data 1512 0.0 1.5 16932 8064 ? S 21:45 0:00 /usr/sbin/apache2 -k start -DSSL www-data 1513 0.0 1.5 16932 8064 ? S 21:45 0:00 /usr/sbin/apache2 -k start -DSSL 1007 1515 0.0 0.1 2028 944 ? S 21:45 0:00 imap www-data 1516 0.0 1.5 16932 8064 ? S 21:45 0:00 /usr/sbin/apache2 -k start -DSSL 1003 1519 0.0 0.1 2036 952 ? S 21:45 0:00 imap 1002 1522 0.0 0.1 2036 944 ? S 21:45 0:00 imap 1002 1525 0.0 0.2 2112 1100 ? S 21:45 0:00 imap 1006 1528 0.0 0.2 2052 1060 ? S 21:45 0:00 imap root 1530 0.0 0.4 7176 2216 ? Ss 21:45 0:00 sshd: root@pts/0 root 1532 0.0 0.4 7176 2216 ? S 21:45 0:00 sshd: root@pts/0 root 1534 0.0 0.3 3064 1684 pts/0 Ss 21:45 0:00 -bash 1006 1540 0.0 0.1 2036 912 ? S 21:46 0:00 imap 1009 1543 0.0 0.1 2036 928 ? S 21:46 0:00 imap 1004 1544 0.0 0.1 2036 948 ? S 21:46 0:00 imap 1006 1558 0.0 0.1 2036 968 ? S 21:46 0:00 imap 1004 1560 0.0 0.2 2068 1056 ? S 21:47 0:00 imap root 1644 0.0 0.2 2968 1040 ? Ss 22:00 0:00 dovecot root 1645 0.0 0.2 5904 1508 ? S 22:00 0:00 dovecot-auth dovecot 1646 0.5 0.2 2968 1436 ? S 22:00 0:00 imap-login dovecot 1647 0.0 0.2 2968 1436 ? S 22:00 0:00 imap-login dovecot 1648 0.5 0.2 2968 1436 ? S 22:00 0:00 imap-login root 1649 0.0 0.1 2764 912 pts/0 R+ 22:00 0:00 ps aux borg:~# netstat -la Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 *:18080 *:* LISTEN tcp 0 0 *:807 *:* LISTEN tcp 0 0 *:netbios-ssn *:* LISTEN tcp 0 0 localhost.localdo:spamd *:* LISTEN tcp 0 0 *:sunrpc *:* LISTEN tcp 0 0 *:www *:* LISTEN tcp 0 0 *:auth *:* LISTEN tcp 0 0 192.168.1.10:domain *:* LISTEN tcp 0 0 localhost.locald:domain *:* LISTEN tcp 0 0 *:ssh *:* LISTEN tcp 0 0 localhost.localdoma:953 *:* LISTEN tcp 0 0 *:microsoft-ds *:* LISTEN tcp 0 0 192.168.1.10:32789 badger.lolerskates:pop3 TIME_WAIT tcp 0 0 192.168.1.10:imap2 192.168.1.20:3709 ESTABLISHED tcp 0 0 192.168.1.10:imap2 192.168.1.20:3706 ESTABLISHED tcp 0 0 192.168.1.10:imap2 192.168.1.20:3707 ESTABLISHED tcp 0 0 192.168.1.10:imap2 192.168.1.20:3704 ESTABLISHED tcp 0 0 192.168.1.10:imap2 192.168.1.20:3705 ESTABLISHED tcp 0 272 192.168.1.10:ssh 192.168.1.20:3703 ESTABLISHED tcp 0 0 192.168.1.10:imap2 192.168.1.20:3700 ESTABLISHED tcp 0 0 192.168.1.10:imap2 192.168.1.20:3701 ESTABLISHED tcp 0 0 192.168.1.10:imap2 192.168.1.20:3698 ESTABLISHED tcp 0 0 192.168.1.10:imap2 192.168.1.20:3699 ESTABLISHED tcp 0 0 192.168.1.10:imap2 192.168.1.20:3696 ESTABLISHED udp 0 0 *:32768 *:* udp 0 0 *:32769 *:* udp 0 0 192.168.1.10:netbios-ns *:* udp 0 0 *:netbios-ns *:* udp 0 0 192.168.1.1:netbios-dgm *:* udp 0 0 *:netbios-dgm *:* udp 0 0 localhost.localdoma:921 *:* udp 0 0 *:801 *:* udp 0 0 *:804 *:* udp 0 0 192.168.1.10:domain *:* udp 0 0 localhost.locald:domain *:* udp 0 0 *:sunrpc *:* Active UNIX domain sockets (servers and established) Proto RefCnt Flags Type State I-Node Path unix 18 [ ] DGRAM 1206 /dev/log unix 2 [ ACC ] STREAM LISTENING 1558 /dev/printer unix 2 [ ] DGRAM 2866 unix 2 [ ] DGRAM 2855 unix 2 [ ] DGRAM 2149 unix 2 [ ] DGRAM 2147 unix 2 [ ] DGRAM 2143 unix 2 [ ] DGRAM 2094 unix 2 [ ] DGRAM 2082 unix 2 [ ] DGRAM 2073 unix 2 [ ] DGRAM 2064 unix 2 [ ] DGRAM 2055 unix 2 [ ] DGRAM 1913 unix 2 [ ] DGRAM 1643 unix 2 [ ] DGRAM 1543 unix 2 [ ] DGRAM 1320 unix 2 [ ] DGRAM 1262 unix 2 [ ] DGRAM 1255 borg:~# Just realized, dovecot only stays in memory for a bit then terminates, since later on it won't show up in ps aux anymore. |
All times are GMT -5. The time now is 09:23 PM. |