PDA

View Full Version : [ubuntu] [12.04] Upgrading problem



mefimess
February 27th, 2014, 02:34 PM
Hello everyone. My name is Mateusz and I come from Poland. At the beggining I'm sorry for my english... I have a big problem with upgrading my Ubuntu. On my laptop I have Ubuntu 12.04. This is old version, I know, but now I would like to upgrade my system. I see in Upgrade Manager that there is available version 12.10. I have readen that I should upgrade Ubuntu step-by-step (12.04 -> 12.10 -> 13.04 -> ...). I made backup and tried to start upgrade but there are few errors:




W:Nie udało się pobrać http://archive.canonical.com/dists/$(lsb_release/-sc)/source/Sources 404 Not Found [IP: 91.189.92.191 80]
, W:Nie udało się pobrać http://archive.canonical.com/dists/$(lsb_release/partner/source/Sources 404 Not Found [IP: 91.189.92.191 80]
, E:Nie udało się pobrać niektórych plików indeksu, zostały one zignorowane lub użyto ich starszej wersji.



I'm from Poland , so that errors are in Polish. The thing is that these sources are removed from server. I know that I have to remove that entries from sources list but I don't know how ... This is my sources.list file:




# deb cdrom:[Ubuntu 11.04 _Natty Narwhal_ - Release amd64 (20110427.1)]/ natty main restricted


# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://pl.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://pl.archive.ubuntu.com/ubuntu/ precise main restricted


## Major bug fix updates produced after the final release of the
## distribution.
deb http://pl.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://pl.archive.ubuntu.com/ubuntu/ precise-updates main restricted


## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://pl.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://pl.archive.ubuntu.com/ubuntu/ precise universe
deb http://pl.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://pl.archive.ubuntu.com/ubuntu/ precise-updates universe


## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://pl.archive.ubuntu.com/ubuntu/ precise multiverse
deb-src http://pl.archive.ubuntu.com/ubuntu/ precise multiverse
deb http://pl.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb-src http://pl.archive.ubuntu.com/ubuntu/ precise-updates multiverse


## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://pl.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
# deb-src http://pl.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse


deb http://security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security multiverse


## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu precise partner
# deb-src http://archive.canonical.com/ubuntu natty partner


## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu precise main
deb-src http://extras.ubuntu.com/ubuntu precise main


# deb http://deb.torproject.org/torproject.org maveric main # wyłączony podczas aktualizacji do oneiric
# deb http://www.linuxfaq.pl/repo/ i386/ # wyłączony podczas aktualizacji do oneiric


# deb http://ppa.launchpad.net/badenov/ppa/ubuntu maveric main # wyłączony podczas aktualizacji do oneiric
# deb-src http://ppa.launchpad.net/badenov/ppa/ubuntu maveric main # wyłączony podczas aktualizacji do oneiric
# deb http://ppa.launchpad.net/v-geronimos/ppa/ubuntu karmic main # wyłączony podczas aktualizacji do precise
# deb-src http://ppa.launchpad.net/v-geronimos/ppa/ubuntu karmic main # wyłączony podczas aktualizacji do precise
# deb http://ppa.launchpad.net/v-geronimos/ppa/ubuntu karmic main # wyłączony podczas aktualizacji do precise
# deb-src http://ppa.launchpad.net/v-geronimos/ppa/ubuntu karmic main # wyłączony podczas aktualizacji do precise
# deb http://ppa.launchpad.net/v-geronimos/ppa/ubuntu maveric main # wyłączony podczas aktualizacji do precise
# deb-src http://ppa.launchpad.net/v-geronimos/ppa/ubuntu maveric main # wyłączony podczas aktualizacji do precise
# deb http://ppa.launchpad.net/v-geronimos/ppa/ubuntu maveric main # wyłączony podczas aktualizacji do precise
# deb-src http://ppa.launchpad.net/v-geronimos/ppa/ubuntu maveric main # wyłączony podczas aktualizacji do precise


deb http://repo.acestream.org/ubuntu/ precise main
deb http://archive.canonical.com/ $(lsb_release -sc) partner
deb-src http://archive.canonical.com/ $(lsb_release -sc) partner
deb http://repository.spotify.com stable non-free
deb-src http://repository.spotify.com stable non-free




I can't find these entries in this file. Because of these errors I can't start upgrade... If anybody know how to fix it - please help. Thank you in advance.

Greetings.

Mateusz

plucky
February 27th, 2014, 03:02 PM
At the bottom of the file
deb http://archive.canonical.com/ $(lsb_release -sc) partner
deb-src http://archive.canonical.com/ $(lsb_release -sc) partner put a # in front of those two lines and then see if you get the same error.


I know that I have to remove that entries from sources list but I don't know how ...

Edit the file with
sudo nano /etc/apt/sources.list and put in the # in front of the two lines.

Or if you need the partner repository you should replace $(lsb_release -sc) with the word precise in both lines.

Good Luck

p.s If you wait a couple of months,you should be able to upgrade to 14.04 directly as that is the next LTS release.

mefimess
February 27th, 2014, 03:20 PM
Thank you, I'll probably try to comment these lines.

I think that I'll try to upgrade system to 13.10 version and in April I'll upgrade it to 14.04

TheFu
February 27th, 2014, 04:11 PM
I don't have a fix. Sorry.
Also, your English is understandable, so don't worry at all. I'm POSITIVE it is better than my Polish!

I only run LTS releases. There is an upgrade path from 12.04 directly to 14.04, just wait a few months.
Check the support schedules before choosing which release you plan to live with. 12.10 is supported until 14.04 is released. 13.04 support ended in Jan. 13.10 support ends after the next LTS is released.

Before trying to upgrade distros, it is strongly recommended to remove any old, non-core, repositories and PPAs. I thought this was handled automatically. Maybe not?
The next possible solution is just to backup your settings, data and list of installed packages, install a fresh version of the OS you want, then restore those settings, data and reinstall the packages.

Backup packages:


apt-mark showauto > pkgs_auto.lst
apt-mark showmanual > pkgs_manual.lst

Restore packages:

sudo apt-mark auto $(cat pkgs_auto.lst)
sudo apt-mark manual $(cat pkgs_manual.lst)

Taken from http://askubuntu.com/questions/101931/restoring-all-data-and-dependencies-from-dpkg-set-selections .
This is a central part of my backup process for desktops and servers. Successfully used to move at least 10 systems.

mefimess
February 27th, 2014, 10:56 PM
Thank you very much for yours replies !

I upgraded successfully my system to 12.10 version and then it appeared possibility to upgrade it directly to 13.10 version. I done this and now I regret a bit... During upgrade, at the end of installing, there were a lot of errors with php5, mysql, phpmyadmin. Then the small window informed me that upgrade wasn't ended successfully. After restart there were a lot of errors too... Now I will try to restart my system few times and look how it will works. I hope everything will be okay. Another way I will probably restore my system to 12.10 or 12.04 version or wait to 14.04...


TheFu thanks, you're very kind ;)

TheFu
February 27th, 2014, 11:59 PM
http://askubuntu.com/questions/368068/how-will-people-upgrade-from-12-10-to-later-releases-after-13-04-is-eol seems related. It isn't clear if an upgrade from 12.10 is supported without going through every intermediate release or not.

And your written English seems like a native speaker to me. Seriously.

mefimess
February 28th, 2014, 04:03 PM
Thank you very much ! After upgrade I still have problems ...

The most irritating for me is that LAMP (Apache + MySQL + PHP) doesn't work after upgrade. It's important for me as I'm web-developer. Because of that modules my upgrading to 13.10 had errors and didn't end successfull.

Now when i type 'localhost' or '127.0.0.1' in browser I can't open my webpages. I tried uninstall and install again Mysql, Apache and PHP5 but it doesn't work. I triend use Synaptic Manager but nothing happend ...

What is more, when I try to install (or even uninstall...) ANY program to or from my laptop I get errors. I tried to install/uninstall few programs, through Software Center and I got messages like this:



Failed behavior of the package
Installation or uninstall software failed.

Details:

installArchives() failed: Selecting previously unselected package python-keybinder.
(Reading database ...
(Reading database ... 5%

...


(Reading database ... 100%
(Reading database ... 354599 files and directories currently installed.)
Unpacking python-keybinder (from .../python-keybinder_0.3.0-2_amd64.deb) ...
Selecting previously unselected package terminator.
Unpacking terminator (from .../terminator_0.97-1ubuntu1_all.deb) ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils ...
Processing triggers for mime-support ...
Processing triggers for gnome-menus ...
Processing triggers for man-db ...
Processing triggers for hicolor-icon-theme ...
Setting up apache2 (2.4.6-2ubuntu2.1) ...
ERROR: Module filter not properly enabled: /etc/apache2/mods-enabled/filter.load is a real file, not touching it
ERROR: Could not enable dependency filter for deflate, aborting
dpkg: error processing apache2 (--configure):
subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
Setting up python-keybinder (0.3.0-2) ...
Setting up terminator (0.97-1ubuntu1) ...
update-alternatives: using /usr/bin/terminator to provide /usr/bin/x-terminal-emulator (x-terminal-emulator) in auto mode
Errors were encountered while processing:
apache2
Error in function:
Setting up apache2 (2.4.6-2ubuntu2.1) ...
ERROR: Module filter not properly enabled: /etc/apache2/mods-enabled/filter.load is a real file, not touching it
ERROR: Could not enable dependency filter for deflate, aborting
dpkg: error processing apache2 (--configure):
subprocess installed post-installation script returned error exit status 1




there are many errors with Apache2. I don't know how to fix it. It's really annoying for me and I really need this LAMP.

Anybody can help me ?

I'm afraid that I have to format my disk, install 12.04 version of Ubuntu and restore backup...

Please help me.

Thank you in advance,

Mateusz.

TheFu
February 28th, 2014, 04:37 PM
Didn't the apache version installed change in a HUGE WAY in 13.10? That could break any upgrades, right?
https://help.ubuntu.com/community/ApacheMySQLPHP might be helpful, but nothing can replace knowing all the components in the server stack AND anything that changed. That link doesn't have anything specific about 13.xx releases or upgrades.

Honestly, I've never attempted an OS upgrade with something as complex as LAMP involved ... well, that might not be completely true. I've done Zimbra server upgrades a few times 8.04 --> 10.04 --> 12.04 and got to fight each time with system changes (LDAP and Perl version changes) each time.

Is there a reason that doing a fresh 13.10 install and reloading your custom software can't be performed? It shouldn't be THAT much extra hassle. Before you start, be certain you have exported (dumped) all mysql DBs and looked into the apache and php changes between the releases. I'd test this a few times on virtual machines before attempting it in production too.

mefimess
February 28th, 2014, 05:44 PM
There is no big reason doing fresh 13.10 install. But I've got a lot of programs on my laptop and I'm afraid to lost everything... But it's possible that I'll write every program name that I have installed on piece of paper, do the fresh install and after that I'll install again that programs. Of course I've exported all mysql DBs and all my PHP projects. Any others files I'll move to another partition which is mounted every time I start system.

I'm not angry on Ubuntu, as I know that probably that is my fault, but I've always thought that I'll never do the reinstall of system like with Windows..

edit.

Is that possible that my problems are because of I had 12.04.4 POLISH version and I've upgraded it to 13.10 where I've now half instructions and texts in Polish and half in English ? On Polish website of ubuntu there is no later version than 12.04.4 to download.