You are not logged in.

#1 2011-12-06 10:17:27

kwiqsilver
Member
Registered: 2011-12-06
Posts: 3

Arch completely hosed after pacman -Syu

I have a VPS machine that I decided to put arch on (my first time with arch). The server started with arch-2010-05-x86_64, which is out of date, so I decided to upgrade it. I ran pacman -Syu, which failed, and now any command gives an error about the kernel being too old.
Is it possible to recover from this situation? I have two ssh connections open as root, but new ssh requests are denied.
If not (and I'm not too worried, I haven't personalized the VPS yet, and reinstalling takes five minutes), how can I avoid this the next time? Installing from a later install media is not an option, as 2010-05 is the latest they offer.

Here is the output. The three "up to date" lines near the top were download progress lines the first time I ran it, but I accidentally hit n and had to restart.

[root@Zoidberg ~]# pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
:: The following packages should be upgraded first :
    pacman  
:: Do you want to cancel the current operation
:: and upgrade these packages now? [Y/n] y

resolving dependencies...
looking for inter-conflicts...

Targets (5): linux-api-headers-3.0.1-1  glibc-2.14.1-1  xz-5.0.3-1  libarchive-2.8.5-2  pacman-3.5.4-4  

Total Download Size:    9.43 MB
Total Installed Size:   44.14 MB

Proceed with installation? [Y/n] y
:: Retrieving packages from core...
 linux-api-headers-3...   574.8K  554.9K/s 00:00:01 [#################################################################################] 100%
 glibc-2.14.1-1-x86_...     7.1M  901.5K/s 00:00:08 [#################################################################################] 100%
 xz-5.0.3-1-x86_64        314.6K  595.8K/s 00:00:01 [#################################################################################] 100%
 libarchive-2.8.5-2-...   608.8K  926.6K/s 00:00:01 [#################################################################################] 100%
 pacman-3.5.4-4-x86_64    855.0K  933.9K/s 00:00:01 [#################################################################################] 100%
checking package integrity...
(5/5) checking for file conflicts                   [#################################################################################] 100%
(1/5) upgrading linux-api-headers                   [#################################################################################] 100%
(2/5) upgrading glibc                               [#################################################################################] 100%
warning: /etc/locale.gen installed as /etc/locale.gen.pacnew
FATAL: kernel too old
error: command failed to execute correctly
(3/5) upgrading xz                                  [#################################################################################] 100%
(4/5) upgrading libarchive                          [#################################################################################] 100%
(5/5) upgrading pacman                              [#################################################################################] 100%
warning: /etc/pacman.conf installed as /etc/pacman.conf.pacnew
FATAL: kernel too old
error: command failed to execute correctly
New optional dependencies for pacman
    curl: for rankmirrors usage
FATAL: kernel too old
error: command failed to execute correctly
[root@Zoidberg ~]# ls
FATAL: kernel too old
[root@Zoidberg ~]# uname -a
FATAL: kernel too old
[root@Zoidberg ~]# pacman
FATAL: kernel too old
[root@Zoidberg ~]# diff /etc/pacman.conf /etc/pacman.conf.pacnew 
FATAL: kernel too old

Offline

#2 2011-12-06 10:20:18

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Arch completely hosed after pacman -Syu

https://wiki.archlinux.org/index.php/VP … ith_OpenVZ

i suggest to switch to an xen or kvm based virtualization, if possible

Last edited by wonder (2011-12-06 10:21:25)


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2011-12-06 10:59:31

kwiqsilver
Member
Registered: 2011-12-06
Posts: 3

Re: Arch completely hosed after pacman -Syu

Switching hosts isn't really an option. It was cheap, and I'm prepaid for a year. I did follow the steps on that linked page, and they worked.

Offline

#4 2011-12-06 11:12:23

kwiqsilver
Member
Registered: 2011-12-06
Posts: 3

Re: Arch completely hosed after pacman -Syu

I spoke too soon...now there's a problem trying to upgrade the kernel:

[root@Zoidberg ~]# pacman -Syu linux
:: Synchronizing package databases...
 glibc-vps is up to date
 core is up to date
 extra is up to date
 community is up to date
warning: linux-3.1.4-1 is up to date -- reinstalling
:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...

Targets (1): linux-3.1.4-1

Total Download Size:    0.00 MB
Total Installed Size:   58.70 MB

Proceed with installation? [Y/n] 
(1/1) checking package integrity                                                     [################################################] 100%
(1/1) checking for file conflicts                                                    [################################################] 100%
(1/1) upgrading linux                                                                [################################################] 100%
>>> Updating module dependencies. Please wait ...
>>> Generating initial ramdisk, using mkinitcpio.  Please wait...
==> ERROR: /proc must be mounted!
error: command failed to execute correctly

/proc is mounted:

[root@Zoidberg ~]# mount
/dev/simfs on / type simfs (rw,relatime,usrquota,grpquota)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime)

Offline

#5 2011-12-06 11:29:12

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Arch completely hosed after pacman -Syu

you do not use the arch kernel in openvz. openvz is just a container running the tools from arch and the kernel is used from host

Last edited by wonder (2011-12-06 11:29:38)


Give what you have. To someone, it may be better than you dare to think.

Offline

Board footer

Powered by FluxBB