You are not logged in.
Has anyone ever seen this (and can explain it - I can't)?
# pacman -Syu
:: Synchronizing package databases...
current [################] 100% 37K 8.4K/s 00:00:04
extra [################] 100% 147K 12.4K/s 00:00:11
:: pacman has detected a newer version of the "pacman" package.
:: It is recommended that you allow pacman to upgrade itself
:: first, then you can re-run the operation with the newer version.
::
:: Upgrade pacman first? [Y/n] y
Targets: pacman-2.8.3-2
Proceed with upgrade? [Y/n] y
:: Retrieving packages from current...
pacman-2.8.3-2 [################] 100% 334K 15.0K/s 00:00:22
checking package integrity... done.
loading package data... done.
checking for file conflicts... done.
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
upgrading pacman... done.
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
# pacman -Qi pacman
Name : pacman
Version : 2.8.3-2
Groups : None
Packager : Arch Linux (http://www.archlinux.org)
URL : http://www.archlinux.org/pacman
...
These are the packages I haven't upgraded yet (there might be a connection, I don't know):
# pacman -Su
Targets: cvsup-16.1h-2 glibc-2.3.3-1 hotplug-2004_04_01-2 libpng-1.2.5-3
libtar-1.2.11-2 mozilla-firefox-0.9.3-1 mozilla-thunderbird-0.7.3-1
putty-0.55-1
:: / my web presence
Offline
Those getcwd errors usually occur when your Current Working Directory has been removed from out under you. Your shell still thinks that's the current directory, but when it tries to traverse relative pathnames (ie, ../over/here) it gets confused because .. is gone.
Offline
Hmm.. maybe. I don't remember exactly where I was when I entered the commands.
It's kind of strange though, I though pacman doesn't interact with the shell while running (=I thought getcwd is somehow called by pacman). The shell could have given a warning/error when the command ended (just like when a process terminates).
:: / my web presence
Offline