LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 07-11-2005, 08:45 PM   #1
Red Squirrel
Member
 
Registered: Dec 2003
Distribution: FC9 on main server
Posts: 795

Rep: Reputation: 36
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.
 
Old 07-11-2005, 08:48 PM   #2
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Ubuntu, Debian, SuSE, UnSlung, Android
Posts: 1,819

Rep: Reputation: 46
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).
 
Old 07-11-2005, 08:54 PM   #3
Red Squirrel
Member
 
Registered: Dec 2003
Distribution: FC9 on main server
Posts: 795

Original Poster
Rep: Reputation: 36
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.

Last edited by Red Squirrel; 07-11-2005 at 08:57 PM.
 
Old 07-11-2005, 09:07 PM   #4
Red Squirrel
Member
 
Registered: Dec 2003
Distribution: FC9 on main server
Posts: 795

Original Poster
Rep: Reputation: 36
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.
 
Old 07-11-2005, 09:09 PM   #5
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Ubuntu, Debian, SuSE, UnSlung, Android
Posts: 1,819

Rep: Reputation: 46
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?

Last edited by Pcghost; 07-11-2005 at 09:11 PM.
 
Old 07-11-2005, 09:14 PM   #6
Red Squirrel
Member
 
Registered: Dec 2003
Distribution: FC9 on main server
Posts: 795

Original Poster
Rep: Reputation: 36
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.
 
Old 07-11-2005, 09:18 PM   #7
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Ubuntu, Debian, SuSE, UnSlung, Android
Posts: 1,819

Rep: Reputation: 46
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.

Oh yeah, and fetchmail is a pop3 mail retriever, Sendmail, Postfix, and Exim are SMTP servers.

Last edited by Pcghost; 07-11-2005 at 09:22 PM.
 
Old 07-11-2005, 09:26 PM   #8
Red Squirrel
Member
 
Registered: Dec 2003
Distribution: FC9 on main server
Posts: 795

Original Poster
Rep: Reputation: 36
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  
 x can select to use their language, country, characters, collation order,   x  
 x etc.                                                                      x  
 x                                                                           x  
 x Choose which locales to generate.  The selection will be saved to         x  
 x `/etc/locale.gen', which you can also edit manually (you need to run      x  
 x `locale-gen' afterwards).                                                 x  
 x                                                                           x  
 x Select locales to be generated.
It's in one of those blue/gray dialog boxes and it has a weird list like this:

[ ] 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?

Last edited by Red Squirrel; 07-11-2005 at 09:29 PM.
 
Old 07-11-2005, 09:32 PM   #9
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Ubuntu, Debian, SuSE, UnSlung, Android
Posts: 1,819

Rep: Reputation: 46
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.
 
Old 07-11-2005, 09:35 PM   #10
Red Squirrel
Member
 
Registered: Dec 2003
Distribution: FC9 on main server
Posts: 795

Original Poster
Rep: Reputation: 36
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...
 
Old 07-11-2005, 09:40 PM   #11
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Ubuntu, Debian, SuSE, UnSlung, Android
Posts: 1,819

Rep: Reputation: 46
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.
 
Old 07-11-2005, 09:49 PM   #12
Red Squirrel
Member
 
Registered: Dec 2003
Distribution: FC9 on main server
Posts: 795

Original Poster
Rep: Reputation: 36
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.
 
Old 07-11-2005, 09:56 PM   #13
Red Squirrel
Member
 
Registered: Dec 2003
Distribution: FC9 on main server
Posts: 795

Original Poster
Rep: Reputation: 36
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.
 
Old 07-11-2005, 09:57 PM   #14
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Ubuntu, Debian, SuSE, UnSlung, Android
Posts: 1,819

Rep: Reputation: 46
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.
 
Old 07-11-2005, 09:59 PM   #15
Red Squirrel
Member
 
Registered: Dec 2003
Distribution: FC9 on main server
Posts: 795

Original Poster
Rep: Reputation: 36
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.lolerskatesop3 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.

Last edited by Red Squirrel; 07-11-2005 at 10:04 PM.
 
  


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
apt-get dist-upgrade problem after crash (during first update) twinkers Debian 4 11-17-2005 11:49 AM
Does Apt-get dist-upgrade automatically update the kernel? adamb10 Ubuntu 2 07-10-2005 11:57 AM
Apt-get update problem after upgrade and others satimis Fedora 0 07-26-2004 06:50 AM
Does 'apt-get update' update the database used by 'apt-cache'? davidas Debian 5 04-20-2004 02:27 AM
What's the difference between apt-get upgrade and apt-get dist-upgrade? davidas Linux - Newbie 4 04-04-2004 09:19 PM


All times are GMT -5. The time now is 06:38 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration