Tag Info

Hot answers tagged

216

You just need to do apt-get install --only-upgrade <packagename>. This will upgrade only that single package, and only if it is installed. If you wish to install the package if it doesn't exist, or upgrade it if it does, you may leave out --only-upgrade.


197

Summary This answer summarizes the recommended community upgrade process. You should always read the release notes for any potential issues that may affect your upgrade. Backup Before you start any upgrade process – ask yourself this question: Can I afford to lose any/all my data such as documents and files? If the answer is no - then backup your ...


83

I typically upgrade my machines with: sudo apt-get update && time sudo apt-get dist-upgrade Below is an excerpt from man apt-get. Using upgrade keeps to the rule: under no circumstances are currently installed packages removed, or packages not already installed retrieved and installed. If that's important to you, use apt-get upgrade. If you want ...


80

From apt-get manual: upgrade upgrade is used to install the newest versions of all packages currently installed on the system from the sources enumerated in /etc/apt/sources.list. Packages currently installed with new versions available are retrieved and upgraded; under no circumstances are currently installed packages ...


80

Your /boot partition is filled with old kernels. It does that sometimes, not sure why it is never fixed. You can easily remove the old kernels if you know which packages they came in. First check uname -a to check your current version. Then run the following command: dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed ...


61

Ubuntu only supports upgrading from one version to the next version, or from one LTS version to the next LTS version. So you need to upgrade from 10.04 to 10.10, and only then to 11.04. There are technical reasons for this restriction. When a new version of an existing package is installed it sometimes has to perform conversions, e.g., it may have to import ...


60

In order to update a single package using the CLI: sudo apt-get --only-upgrade install <packagename> e.g., sudo apt-get --only-upgrade install ack Reading package lists... Done Building dependency tree Reading state information... Done Skipping **ack**, it is not installed and only upgrades are requested. 0 upgraded, 0 newly installed, 0 to ...


57

Summary This answer summarizes the recommended community upgrade process. You should always read the release notes for any potential issues that may affect your upgrade. Also note that you cannot upgrade from releases older than 12.10 to 13.04, if you're on an older release you need to upgrade to 12.10 first: Can I skip over releases when upgrading? ...


52

Here is my advice as a tutorial-like answer, based on my experience upgrading. This procedure was tested by me, and it worked as it should. Hopefully this will help others to upgrade without problems. This is not an official guide. Friendly advice There is no reason to rush. There is no reason to upgrade from day one. The new Ubuntu version is not going ...


51

You will find a clean install a lot less hassle than any other unusual, obscure, unsupported method. Your suggest of partitioning the config files, home directories, etc is probably the best idea, and it is possible to install the same packages on a clean install as on another install. On the other hand, what you requested is possible, there is a little ...


48

The beta uses the repositories as they are updated -- it is not a fixed snapshot of Ubuntu as it was when the beta was released. If there are no more updates to be installed, then congratulations! You are running the final Ubuntu release. There is nothing else you need to do. Here, have a totally simplified, consumer-side view of a release I hacked ...


42

Press Alt + F2 and type update-manager -d. On the top of the window you will see an info of the new Ubuntu+1 "release". However, upgrading to a development release is not recommended, as it is a unstable release. See this question for tips when you have problems: There's an issue with an Alpha/Beta Release of Ubuntu, what should I do?


42

apt-get upgrade is restricted to the case where packages are to be replaced by newer versions, but no package needs to be added or removed. A new version of Firefox, for instance, should be installable with apt-get upgrade. However apt-get upgrade will refuse to work when there are additions or removals required by the updated versions. For example, when ...


42

Githlar's answer removes the warning, without responding to what the warning is telling you. It's actually saying that loading from ~/.fonts.conf will be removed in the future. Hence, Githlar's solution will ignore what will break in the future. The correct thing to do is to move ~/.fonts.conf to ~/.config/fontconfig/fonts.conf . The easiest way to move this ...


41

Because Ubuntu 12.04 is a Long Term Support release (meaning that it is supported with bug fixes and security updates for 5 years) you won’t find a pop-up telling you that a new version is available. If you want to upgrade,you can follow these instructions Open Update Manager from either the Power Menu or the Dash. Click the ‘Settings’ button in the ...


39

I think I've sorted it thanks to a post I found here: Root filesystem check fails after power failure during installation. Run from maintenance shell one line at a time: mount -o remount,rw / dpkg --configure -a mount -o remount,ro / sync reboot Worked for me but only got the first 2 lines and couldn't do the rest as drive was busy. Rebooted and it seems ...


38

To update from an older version (very old in this case) than the previous version to the current version is highly not recommended. You are better off downloading the new release, doing a backup and then installing the new release. If you are using Ubuntu 10.04 and REALLY REALLY want to update from that version up to the latest version then keep reading, ...


37

You'll first need to make sure update-manager-core is present (it may already be installed): sudo apt-get install update-manager-core Next, run: sudo do-release-upgrade You may need to check /etc/update-manager/release-upgrades and change the line: Prompt=lts to: Prompt=normal for the release to show up. Upgrade Documentation Upgrade Notes


36

Okay, so from the output of /etc/fstab you posted, it seems that your /boot is mounted on a separate partition, and from the output of df -h, that partition is full. This is because there are old kernels installed that are not needed; you can tell that by looking at the output of dpkg -l | grep linux-image that you posted, where you can see more than one ...


34

@Marco-Ceppi 's solution is already integrated into do-release-upgrade. When you run do-release-upgrade it starts a screen session automatically. If your ssh session gets disconnected, you can resume the installation. All you have to do is open a new ssh session, and run do-release-upgrade again. It will reconnect to your previous installation. A second ...


34

The truly command line way is (e.g. if you don't have a gui): sudo do-release-upgrade -d where -d means update to a development version (like 11.04 - natty)


34

The simplest set of instructions I always used for kernel upgrade / downgrade are by ubuntuforums.org user by the name of lykwydchykyn (url modified by me for this post): Go here: http://kernel.ubuntu.com/~kernel-ppa/mainline/ Download 3 (maybe 4) debs to a folder somewhere: linux-headers-VERSION-NUMBER_all.deb linux-headers-VERSION-NUMBER_amd64.deb ...


34

Check that mysql-server-5.1 package was uninstalled, seems it might persist after upgrade. I had the same error and had to purge MySQL server 5.1 and 5.5 then re-install. First make a backup of your /var/lib/mysql/ directory just to be safe. sudo cp -R /var/lib/mysql/ ~/mysql Next purge MySQL (this will remove php5-mysql and phpmyadmin as well as a ...


31

Freeing Up Space on the Root File System To free up space on the root file system you can try to execute apt-get clean. If that doesn't work you can go to /var/cache/apt/archives and manually remove a few files from the cache to get some space back, e.g.: sudo rm linux-headers-* It won't hurt to remove all of the .deb files here if you need to--that is ...


30

Upgrading to a mainline kernel is usually not a good idea Most of the basic information in this answer is from the Mainline Builds wiki 1. They are provided only for testing and are unsupported The mainline kernels are built from the latest unmodified "mainline" Linux kernel sources. The Ubuntu kernel team provides these only for testing and ...


29

With all the other disclaimers re: no updates, no security ... There are most old repositories available at http://old-releases.ubuntu.com so edit /etc/apt/sources.list and change 'archive.ubuntu.com' to 'old-releases.ubuntu.com' You can do this with sed sudo sed -i -e 's/archive.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list then update ...


28

You do not have the Heartbleed vulnerability on your server, OpenSSL has been patched to fix this issue (without upgrading it). You have left out several important lines in the OpenSSL version output, that's how you know it's been patched, not with the version number: openssl version -a ✭ ...


27

Open a terminal(type "gnome-terminal" on the dash) and type lsb_release -a and if the output is: No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04 LTS Release: 14.04 Codename: trusty you are running the stable release and if the output is: Distributor ID: Ubuntu Description: Ubuntu Trusty Tahr (development branch) ...


27

Replacing this line LockFile ${APACHE_LOCK_DIR}/accept.lock with this one Mutex file:${APACHE_LOCK_DIR} default in /etc/apache2/apache2.conf solved the problem.


27

What I would recommend doing is launching a screen session on the server and running the upgrade in screen - that way if your SSH session drops (for whatever reason) the upgrade process will not halt. Screen is a program that allows for persistent terminal(s) on a machine. So you can start a screen session and so long as the machine is on that screen ...



Only top voted, non community-wiki answers of a minimum length are eligible