Ubuntu Servers :: Which Command To Automatically Update Packages
May 11, 2011
I'm currently writing a script that will update the software packages on six ubuntu servers so I don't have to go in and update them manually constantly. Problem is, I'm not sure which command I should use to do this the most effective and safe way. Currently, I use sudo apt-get upgrade -y on my own machine, though I can see how this could be dangerous on production servers. I was in the IRC chat and I was told aptitude safe-upgrade is something I may want to look into. Is there a way I can only update security related stuff instead of everything? What do you guys suggest would be the best way going about this? Another issue I can foresee is certain packages that have an interactive prompt. While apt-get upgrade -y takes care of most of this, MySQL would fail with this as it opens up it's own prompt. Anyway I could make my script skip these types of prompts, so I can go back and update them later manually?
View 1 Replies
ADVERTISEMENT
Feb 11, 2011
I was running 10.04 LTS and had decided to stick to the LTS versions as I'm now running my machine as a server and don't want to be updating regularly.Every time I logged in via SSH I got a message telling me there where packages to update including a security update. So I did a search to find out how to perform an update on Ubuntu server from the command line.What I found was to do this:sudo apt-get updatesudo apt-get dist-upgradeAfter doing that I rebooted but now my machine gives me this message:
init: ureadahead-other main process (794) terminated with status 4Your disk drives are being checked for errors, this may take some timePress C to cancel all checks currently inprogressI'm not pressing C yet and leaving it alone to finish, but I noticed when the machine booted that one of the options for booting talked about Ubuntu 10.10, so I'm worried that I've updated from 10.04 LTS to 10.10 by accident?
View 8 Replies
View Related
Mar 4, 2010
Is it possible to configure a cron script to update the packages in /var/cache/apt-cacher/packages? When a client machine updates a package, apt-cacher checks that it's cached package is up-to-date, and downloads a new version if it is not.
I'd like apt-cacher to check it's cached packages every night and download any updated ones, on the premise that since it exists in the apt-cacher cache, someone has that package installed and is going to want to update it. Is this possible? Does apt-cacher do this anyway, and I haven't noticed?
View 2 Replies
View Related
Jul 9, 2011
Do you have any idea on how to achieve my goal? Here is the scenario. As a requirement on our development process for every ticket we have we need to create a branch(svn) so that we can develop without disturbing other developer. Now for every checkout I made I need to create a vhost so that I can develop first in my local before deploying to the branch.The site I'm working on is based in Drupal. The files I checked out is just the all folder of Drupal. The core files are already in my local. So the script would grab the core files and copy the all folder in my checkout branch then put them in the vhost.So basically I need a script that will do these automatically for me:1. Setup a vhost Ex: My branch name is 1205googleplusone. Inside that branch has two folders, all and default. What I need only is the DocumentRoot should only point to all folder.2. Update the /etc/hosts Ex: The URL should be 1205googleplusone.domain.com. 3. Create a new database for the new site The script should create a new database and update the configuration.php
View 6 Replies
View Related
Feb 28, 2011
I am having trouble getting grub to automatically boot into ubuntu server. When I turn on my server the grub menu shows up and shows me the choices. They all work fine except that grub wont automatically select one. This wouldn't be too much of a problem but this is a headless server and I can't boot into ubuntu without a keyboard. I tried looking through the grub 2 documentation but nothing seemed to work when I edited the conf file.
View 1 Replies
View Related
Sep 12, 2010
On Ubuntu Desktop editions, there is a GUI application which allows easily changing to a different server. It can even find out how one is the fastest update server.Is there a corresponding command line tool available to do this? Because I'm using the Server edition without GUI. I hate to manually edit /etc/apt/source.list.
View 4 Replies
View Related
Nov 6, 2010
I just installed ubuntu 10.10, and im triying to update, when i uncheck the packages that i dont want and click on the "install updates" button in the update manager, the update manager check it again and download the packages that i dont want
View 1 Replies
View Related
Sep 8, 2010
1) Environment:
Ubuntu 10.04
2) Phenomenon:
External hard drives won't be automatically mounted after upgrading some packages...
I have a "not good" habit: I'd love to upgrade whatever suggested by Ubuntu upgrading center every morning.
However, after upgrading some packages for today, my computer won't be able to automatically mount external harddrives, including file systems ext4 and ntfs.
My question is:
1) How can I check what packages have been upgraded just within today?
2) How to make my Ubuntu be able to automatically mount external hard drives whenever I plug in a harddrive as before?
View 3 Replies
View Related
Jun 27, 2011
I have a set of bash scripts that I'm running that automatically build a set of packages for me and redirect their output into logs. Basically, I have a bunch of lines that are something like this: ${CONFIGURE_DIR}/configure &> ${LOG_DIR}/log or cd ${CONFIGURE_DIR} && make &> ${LOG_DIR}/log, etc.
This is supposed to make the entire process silent. However, sometimes with some packages some output leaks to my console (either stdout or stderr). I'm thinking that maybe the configure scripts/make are executing commands within new shell instances that don't inherit my redirect, or something to that effect.
Another reason for thinking this is that in another part of my script I detect errors when running make by testing with "if [ $? -ne 0 ]", and if the redirect leaks to my console and also the leaked output indicates that the build failed ("make: Error" and so on), then my $? test fails (i.e., it thinks that $? == 0, whereas a failed make should return a non-zero value). It's as if my original script can't "see" the results from child commands executed from later scripts.
View 1 Replies
View Related
May 10, 2010
Ever since I've been using 10.04 I have never once had the update manager come up by itself like it used to with 9.04. I've given it a week one time thinking maybe there were no updates but then when I finally selected it myself it worked just fine (and had about 20 updates waiting). I've just been opening it every few days and manually getting my updates since then. This bothers me because in the future I may forget to update and miss something important.
My settings are:
-Important updates
-Recommended updates
-Check for updates Daily
-Only notify about available updates
[code]...
View 9 Replies
View Related
May 17, 2010
I have ubuntu 9.10 and using dyndns by apt-get install ddclient but when my internet disconnect and my real ip changed it wont update automatically i have to go to computer and type in terminal ddclient then it get update ....is there any way to get it update automatically.
View 2 Replies
View Related
Sep 23, 2010
how can i make update run automaticaly like win os.my os ubuntu 10.4 lcd.
View 2 Replies
View Related
Mar 24, 2011
I've run the command "sudo apt-get update" from terminal, showing no update to do.Then I've run the update manager (System-Administration-Update Manager) and it has shown an update (adobe flash).I thought that "apt-get update" command and update manager were the same... Why do I have different results ? Is something missing in my "sources.list" file ?
View 4 Replies
View Related
May 13, 2010
I googled around and couldnt find what I was looking for. Maybe I used the wrong search terms, but whatever. I was wondering if there was a possibility to execute a series of terminal commands just by double-clicking an icon. For example, there would be an icon on my desktop, and if I were to doubleclick it, it would execute "cd ~/.wine2" and then "WINEPREFIX="$HOME/.wine2" wine program.exe".
I realise that most of you will probably go "duh, that's simple" or something similar, but I am extremely new to ubuntu, and dont know my way around yet.
View 3 Replies
View Related
Oct 12, 2010
Since a few weeks my PC have been working slow and the gnome system Monitor says that my cpu is working at 100% all the time. when I ran top command appears:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
770 root 20 0 4060 308 240 R 76 0.0 8:41.05 yes
919 root 20 0 4060 312 240 R 49 0.0 8:23.39 yes
[code]...
View 5 Replies
View Related
Dec 30, 2010
I want to auto run
Code:
sudo updatedb at Ubuntu startup. Is this okay: [URL]...
View 5 Replies
View Related
Feb 2, 2011
I need to execute this command after login: gvfs-mount -d /dev/sda1.It works perfectly from terminal but it doesn't if I add it to "Startup Applications" or to rc.local.Is there another way?
View 2 Replies
View Related
May 27, 2011
I have a lenovo thinkpad laptop, and it has both touch-pad (standard build in laptop mouse) and touch-point (in the middle of the keyboard) mouse options.
I almost invariably use the touch-point and the accompanied scroller and key-buttons.
HOWEVER, for the scroller to be recognized by ubuntu you must run two scripts as follows:
xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 8 1
xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 8 2
Restarting the computer resets these settings, and you must re-run them each time you start up ubuntu.
I am looking to write a script that will automatically run itself (which will execute the above commands), or to permanently change these settings so that it will not be necessary to run them at each start-up.
Thanks in advance, and if there is another thread on these forums that I should move to (or even just another thread that would be a more likely place to get a response). This seemed like the best forum (one which can certainly hold this post without violating any rules), but I may have missed something.
View 4 Replies
View Related
Jul 17, 2011
I want that every time i click on a .app folder, the command openapp appname is run. Just by double clicking. I know this isnt the default, but archive manager doesnt automatically open .docx, which a really xip files. Even if i cant do this with a folder, how could i do this with a file, where the application is discerned via filet ending,. However, this should just be an option for a default for a specific file ending
View 1 Replies
View Related
Apr 1, 2009
I see Centos 5.3 is out, actually i have been seeding for the last 18hrs. Will yum automatically update the box to 5.3 or is there a special way to do it. Am using the centos plus kernel.
View 13 Replies
View Related
Mar 5, 2010
I am trying to do the update of ubuntu 9.10 UNR (it is your netbook equal to every other), but I get a error, it says it cant get some packages from the servers.
I tried to do a bug report but I dont know how.
View 2 Replies
View Related
Mar 9, 2011
When I allow Update Manager to download and install security and other updates it saves the deb package files in /var/cache/apt/archives. I don't really need or want to keep these files. I seem to recall that in versions years ago the default was to delete them after installation. But the issue at the moment is how to get 10.04 and later to automatically delete the files after installation. Space is not a concern on my desktop PC nor my server. It is an issue with various virtual machine installations as they are limited in disk space and the more they take up the more there is to backup.
I have tried telling Synaptic to delete the files after installation but this does not change the performance of Update Manager.
View 5 Replies
View Related
May 9, 2010
Is there a way to make Clam update the signatures automatically? I cannot see an option in Clam TK.
View 1 Replies
View Related
Sep 12, 2010
I'd like to have my own script be executed automatically after doing a Linux kernel update. Is there somewhere i can link into this process that isn't touched by the update itself? The purpose of this idea is to try automate the installation of sound (alsa 1.0.23-2) and video drivers (nvidia from website) that i typically need to do after every kernel update.
View 3 Replies
View Related
Sep 28, 2010
Title says it all really: is there an easy way to get burg to automatically update after a new kernel install in the same way that grub does it?
View 4 Replies
View Related
Oct 3, 2010
I just noticed that my USB sticks are not automatically mounted anymore after having updated kernel from 2.6.32-24-generic to 2.6.32-25-generic on my Acer Extensa 5220 laptop. It still works if I "sudo modprobe usb-storage". What might have gone wrong? I'm not experiencing this on my desktop machine also running 10.04. How to fix this permanently? And now I remember that I'm not able to use my mobile broadband either (Nokia N900 in PC Suite mode through USB). It's just not detected anymore. It must suffer from this same problem. I tried to roll back to the previous kernel, but then the restricted driver for my Broadcom WLAN refuses to install
View 2 Replies
View Related
Oct 18, 2010
Just wondering is there a way to make the update manager display automatically in Ubuntu 10.10 after it check the repositories for updates. I keep having to manually put sudo apt-get upgrade all the time. Even set to daily it never pops up.
View 1 Replies
View Related
Aug 10, 2010
I am using ubuntu operating system, recently I am getting one problem when i am using the system . system is automatically going to command line mode it is asking user name and password. After entering user name and password I can able to use the system only in command line mode. Again when i restart I am getting gui as usual. Please help me to resolve the problem.
View 1 Replies
View Related
May 12, 2011
I need a program that automaticly runs this command in the terminal when I use it:
sudo modprobe nvidia_g210m_acpi
Sure, I know that it's not that hard to just write it in terminal and so on, but I really want a program for it. I'm using ubuntu 11.04 if U need to know that?
View 8 Replies
View Related
Aug 21, 2010
I have Ubuntu Karmic 64-bit installed. Update manager tells me there are updates available, but when i try to install them, downloading the updates fail and throws this error:
Code:
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/e/eglibc/libc6-i386_2.10.1-0ubuntu16_amd64.deb
Consequently, a similar error occurs when I try installing Sun Java 6 Runtime.
Code:
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/multiverse/s/sun-java6/sun-java6-jre_6-15-1_all.deb Connection failed [IP: 91.189.88.31 80]
Ubuntu Restricted Extras stalls when it's time to download the Java package I tried synaptic, update manager, aptitude, apt-get, and they all throw similar errors. Then I also tried connecting to different servers, to no avail. So to check if it's my connection to the net that has problems somehow, I tried downloading the file directly through my web browser, and it works. (But it's not recommended, and it won't let me!, install the updates manually, right?) I tried searching for the errors on the net and in the forums, and they're all somehow related to proxy servers. I then checked if I'm using some inappropriate proxy settings, and everywhere it's all set up to connect to the net directly, which is, well, my setup.
Take note though, that I am able to install other softwares normally, i.e, using synaptic, apt-get etc. The ones I tried include Pidgin and Mplayer. It's just these updates and Java:
Code:
jeanne@jeanne-desktop:~$ sudo sudo aptitude upgrade
W: The "upgrade" command is deprecated; use "safe-upgrade" instead.
Reading package lists... Done
[code].....
View 3 Replies
View Related