I'm trying to upgrade an early version of LinHES - the box was built in June '09 and hasn't really been upgraded since, so it's probably a 6.00 version.
I know how to use a bash prompt, and to not rm -rf /. myself, but I'm definitely a Windows person and not a Linux one, so I don't know administrative commands very well (e.g. I'm aware of modprobe but I don't know how to use it without specific instructions).
Two things I need some help with:
1) At some point I switched over to the testing repository to pull down some software. Can someone confirm that I've properly restored my pacman.conf to the correct servers?
Code:
#
# /etc/pacman.conf
# from pacman.conf MV
# NOTE: If you find a mirror that is geographically close to you, please
# move it to the top of the server list, so pacman will choose it
# first.
#
# To re-sort your mirror lists by ping/traceroute results, use the
# /usr/bin/sortmirrors script. It requires the "netselect" package.
#
# See the pacman manpage for option directives
#
# GENERAL OPTIONS
#
[options]
LogFile = /var/log/pacman.log
NoUpgrade = etc/passwd etc/group etc/shadow etc/sudoers
NoUpgrade = etc/fstab etc/raidtab etc/ld.so.conf
NoUpgrade = etc/rc.conf etc/rc.local
NoUpgrade = etc/modprobe.conf etc/modules.conf
NoUpgrade = etc/lilo.conf boot/grub/menu.lst
NoUpgrade = data/srv/hobbit/etc/bb-hosts
NoUpgrade = etc/func/minion.conf
HoldPkg = pacman glibc
CacheDir = /data/var/cache/pacman/pkg
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#
# REPOSITORIES
# - can be defined here or included from another file
# - pacman will search repositories in the order defined here.
# - local/custom mirrors can be added here or in separate files
#
#
#[core-testing]
#Server = http://knoppmyth.net/repo/i686/core-testing
#[extra-testing]
#Server = http://knoppmyth.net/repo/i686/extra-testing
########################ARCH DEFAULTS#############
[core]
# Add your preferred servers here, they will be used first
Server = http://knoppmyth.net/repo/i686/core
#Include = /etc/pacman.d/mirrorlist
[extra]
# Add your preferred servers here, they will be used first
Server = http://knoppmyth.net/repo/i686/extra
#Include = /etc/pacman.d/mirrorlist
[community]
# Add your preferred servers here, they will be used first
#Include = /etc/pacman.d/mirrorlist
# Unstable is disabled by default. To enable, uncomment the following
# two lines. You can add preferred servers immediately after the header,
# and they will be used before the default mirrors.
#[unstable]
#Include = /etc/pacman.d/mirrorlist
2) When I attempt to install the upgrade scripts, this happens:
Code:
> pacman -Sy linhes-scripts
:: Synchronizing package databases...
core 115.0K 209.5K/s 00:00:01 [#####################] 100%
extra 59.3K 139.0K/s 00:00:00 [#####################] 100%
error: failed to update community (unexpected error)
warning: linhes-scripts-1-77 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...
Targets (1): linhes-scripts-1-77
Total Download Size: 0.00 MB
Total Installed Size: 0.17 MB
Proceed with installation? [Y/n] Y
checking package integrity...
(1/1) checking for file conflicts [#####################] 100%
(1/1) upgrading linhes-scripts [#####################] 100%
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
error: scriptlet failed to execute correctly
What's wrong here is obvious - the MySQL root user has a password and the scriptlet is doing something where it assumes that the user doesn't. What I'm not sure is what approach I should take to fix it. Is it safe to clear the MySQL root user password, or will that break anything? And is it safe to force-install this package without running the scriptlet?
I have a backup available if something goes wrong.