You are not logged in.
Pages: 1
i am trying to upgrade pacman and i get an error
error: cannot resolve "openssl>=1.0.0", a dependancy of "libarchive"
openssl 1.0.0 is installed on system
Last edited by stevestark (2010-08-27 23:44:09)
Offline
What command are you running exactly? Maybe the problem is with the versioned dependency - the program doesn't like the '>' sign.
Offline
pacman -Syu is the command. it asks if i want to install a newer version of pacman and i say yes and i get that error
i also get another error when trying to install any package. any package below is the package name i am trying to install. for example pacman -S alsa-utils will give the following error.
first it downloads the package without any error then it begins the install and gives the error below
error while reading package (any package) unreconized archive format: invalid or incomplete multibyte or wide charator
error failed to commit transaction (libarchive error)
Last edited by stevestark (2010-08-25 01:31:00)
Offline
You can manually (re)install pacman and xz by untaring it to root, check the pacman wiki page. Or you use a more recent iso to install.
edit: sorry, xz can be normally installed directly with -U. for the openssl error, there have been some post about in the past.
Last edited by hokasch (2010-08-25 01:47:30)
Offline
I'm not sure (it's very late / early here) but you can try this https://bbs.archlinux.org/viewtopic.php?id=95007
Offline
You can manually (re)install pacman and xz by untaring it to root, check the pacman wiki page. Or you use a more recent iso to install.
edit: sorry, xz can be normally installed directly with -U. for the openssl error, there have been some post about in the past.
pacman -U package name give the error cannot open package name
Offline
I'm not sure (it's very late / early here) but you can try this https://bbs.archlinux.org/viewtopic.php?id=95007
that link did not work but thankyou anyways. the bash file might be too old and i cant upgrade it or know how to unzip it to determine if bash was why i was getting so many errors.
whats the command to unzip a package?
Last edited by stevestark (2010-08-25 05:09:18)
Offline
whats the command to unzip a package?
Append this code to your .bashrc
extract () {
for archive in $*; do
if [ -f $archive ] ; then
case $archive in
*.tar.bz2) tar xvjf $archive ;;
*.tar.gz) tar xvzf $archive ;;
*.tar.xz) tar xvJf $archive ;;
*.bz2) bunzip2 $archive ;;
*.rar) rar x $archive ;;
*.gz) gunzip $archive ;;
*.tar) tar xvf $archive ;;
*.tbz2) tar xvjf $archive ;;
*.tgz) tar xvzf $archive ;;
*.txz) tar xvJf $archive ;;
*.zip) unzip $archive ;;
*.Z) uncompress $archive ;;
*.7z) 7z x $archive ;;
*) echo "don't know how to extract '$archive'..." ;;
esac
else
echo "'$archive' is not a valid file!"
fi
done
}
I got this code from an Arch linux forum posting some time before. Unfortunately, I don't have a link to it. Extremely sorry to the original contributor. I have added uncompress commands for the new .tar.xz format, Arch packages use and .txz format that slackware uses.
Now in commandline, type
$ extract </path-to-filename/filename.extension>
example:
$ extract ~/username/Downloads/amarok-2.3.1-1-x86_64.pkg.tar.xz
Everything void is absolute and everything absolute is void.
Offline
or just use bsdtar xf <file> ;-) This will extract all compressed files libarchive knows about.
Offline
whats the command to unzip a package?
Offline
what directory is .bashrc in?
Offline
what directory is .bashrc in?
Both in Roots and User's ~/ whether you intend it system wide or for that particular user only.
Everything void is absolute and everything absolute is void.
Offline
stevestark wrote:what directory is .bashrc in?
Both in Roots and User's ~/ whether you intend it system wide or for that particular user only.
i did not have a .bashrc file at /home but i copyed your .bashrc to /home then ran pacman -S package and it begin to download (i verifyed that the package was in the pacman cache). then it begin the install and started to extract the package, i got the same old error below...
error while reading package (any package) unreconized archive format: invalid or incomplete multibyte or wide charator. error failed to commit transaction (libarchive error)
i ran bsdtar xf package and got the error...
failed to set default locale.
Last edited by stevestark (2010-08-26 03:40:04)
Offline
karol wrote:I'm not sure (it's very late / early here) but you can try this https://bbs.archlinux.org/viewtopic.php?id=95007
that link did not work but thankyou anyways. the bash file might be too old and i cant upgrade it or know how to unzip it to determine if bash was why i was getting so many errors.
whats the command to unzip a package?
Just curious, what exactly didn't work - any errors? Did you 'chmod +x' to make the script executable?
Offline
absolutevoid wrote:stevestark wrote:what directory is .bashrc in?
Both in Roots and User's ~/ whether you intend it system wide or for that particular user only.
i did not have a .bashrc file at /home but i copyed your .bashrc to /home then ran pacman -S package and it begin to download (i verifyed that the package was in the pacman cache). then it begin the install and started to extract the package, i got the same old error below...
error while reading package (any package) unreconized archive format: invalid or incomplete multibyte or wide charator. error failed to commit transaction (libarchive error)
i ran bsdtar xf package and got the error...
failed to set default locale.
Did you copy the .bashrc file to /home/ or /home/$Username ?
It has to be in /home/$Username
Offline
stevestark wrote:karol wrote:I'm not sure (it's very late / early here) but you can try this https://bbs.archlinux.org/viewtopic.php?id=95007
that link did not work but thankyou anyways. the bash file might be too old and i cant upgrade it or know how to unzip it to determine if bash was why i was getting so many errors.
whats the command to unzip a package?
Just curious, what exactly didn't work - any errors? Did you 'chmod +x' to make the script executable?
when i typed in script.sh, nothing happened. no errors. i dont think 2008 iso is able to run .sh or maybe i am doing something wrong.
Offline
You are doing something wrong. Also the script is just a template, you will have to adjust it with current package versions. karol asked about making the script executable, did you do it?
Anyway, you don't need the script, you can just do all the steps manually. Manually download the mentioned packages (openssl libarchive libfetch pacman and xz) and extract them one by one like in the script:
sudo tar -xvpf ${pkgname} -C / --exclude .PKGINFO --exclude .INSTALL
then forcefully reinstall them with pacman.
p.s.: you will need to start with xz if one of the other packages have been switched to xz compression in the meantime (don't know if they have).
Last edited by hokasch (2010-08-26 23:18:49)
Offline
Did you copy the .bashrc file to /home/ or /home/$Username ?
It has to be in /home/$Username
/home/$Username. i got 1 error logging into username. bash: extract is unknown.
Offline
You are doing something wrong. Also the script is just a template, you will have to adjust it with current package versions. karol asked about making the script executable, did you do it?
Anyway, you don't need the script, you can just do all the steps manually. Manually download the mentioned packages (openssl libarchive libfetch pacman and xz) and extract them one by one like in the script:sudo tar -xvpf ${pkgname} -C / --exclude .PKGINFO --exclude .INSTALL
then forcefully reinstall them with pacman.
i forgot about making the script executable. do i do something like chmod +x script.sh
Last edited by stevestark (2010-08-27 23:45:09)
Offline
Pages: 1