Can't update cabal

Hello all, I’m tring to install a cardano node. I’m using ubuntu 21.04. I’m at the step to type the command “cabal build all”. It return this error:
cabal: Error parsing project file
/home/emanuele/cardano-src/cardano-node/cabal.project:105:
“” (line 2, column 1):
unexpected ‘b’
expecting space or end of input
so i thought was a cabal version problem because i have 3.0.1.0 but 3.4.0.0 is needed. It try update cabal but if i use curl --proto ‘=https’ --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh it return this error:
Warning: /home/emanuele/.ghcup/cache/ghc-8.10.5-x86_64-fedora27-linux.tar.xz:
Warning: Permission denied
0 208M 0 14 0 0 90 0 28d 01h --:–:-- 28d 01h 90
curl: (23) Failure writing output to destination
[ Error ] Download failed: Process “curl” with arguments ["-fL","-o","/home/emanuele/.ghcup/cache/ghc-8.10.5-x86_64-fedora27-linux.tar.xz",“https://downloads.haskell.org/~ghc/8.10.5/ghc-8.10.5-x86_64-fedora27-linux.tar.xz”] failed with exit code 23.
[ Error ] Also check the logs in /home/emanuele/.ghcup/logs
“_eghcup --cache install ghc recommended” failed!
and if i use cabal update it tell me:
Could not deserialize /root.json: Malformed: (line 1, column 1):
unexpected end of input
expecting white space or JSON value

any idea?
tyvm

Which guide are u using?

The cardano developer portal one :slight_smile:
here: Installing cardano-node and cardano-cli from source | Cardano Developer Portal

and has ur user sudo rights?

Try

groups user_name

the output is:
emanuele : emanuele adm cdrom sudo dip plugdev lpadmin lxd sambashare

seems I have the rights?

Yes, it seems the user has sudo rights

I need to fix this trouble. Do you have some advice to give me? Even a forum where I can ask help…

Try to start over and follow this guide

Im tring ty.
but i dont know why if i set:

ghcup set ghc 8.10.4
[ Warn ] New GHC version available: 9.0.1. To upgrade, run ‘ghcup install ghc 9.0.1’
[ Info ] GHC 8.10.4 successfully set as default version

but if i ask:
ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.8.4

Indeed:

cabal configure -O0 -w ghc-8.10.4
cabal: Error parsing project file
/home/emanuele/git/cardano-node/cabal.project:105:
“” (line 2, column 1):
unexpected ‘b’
expecting space or end of input

same error as the other time :frowning: not same but similar

emanuele@emanuele-HP-260-G1-DM:~/git/cardano-node$ ghcup rm ghc 8.10.4
[ Warn ] New GHC version available: 9.0.1. To upgrade, run ‘ghcup install ghc 9.0.1’
[ Info ] Removing ghc symlinks
[ Info ] Removing ghc-x.y.z symlinks
[ Info ] Removing/rewiring ghc-x.y symlinks
[ Info ] Removing directory recursively: /home/emanuele/.ghcup/ghc/8.10.4
[ Info ] After removing GHC you might also want to clean up your cabal store at: ~/.cabal/store/ghc-
emanuele@emanuele-HP-260-G1-DM:~/git/cardano-node$ ghcup install ghc 8.10.4
[ Warn ] New GHC version available: 9.0.1. To upgrade, run ‘ghcup install ghc 9.0.1’
[ Info ] downloading: https://downloads.haskell.org/~ghc/8.10.4/ghc-8.10.4-x86_64-fedora27-linux.tar.xz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 207M 100 207M 0 0 2135k 0 0:01:39 0:01:39 --:–:-- 2138k
[ Info ] verifying digest of: ghc-8.10.4-x86_64-fedora27-linux.tar.xz
[ Info ] Unpacking: ghc-8.10.4-x86_64-fedora27-linux.tar.xz to /tmp/ghcup-df593b6c20f18575
[ Info ] Installing GHC (this may take a while)
[ Info ] GHC installation successful
emanuele@emanuele-HP-260-G1-DM:~/git/cardano-node$ ghcup set ghc 8.10.4
[ Warn ] New GHC version available: 9.0.1. To upgrade, run ‘ghcup install ghc 9.0.1’
[ Info ] GHC 8.10.4 successfully set as default version
emanuele@emanuele-HP-260-G1-DM:~/git/cardano-node$ ghcup install cabal 3.4.0.0
[ Warn ] New GHC version available: 9.0.1. To upgrade, run ‘ghcup install ghc 9.0.1’
[ Warn ] Cabal ver 3.4.0.0 already installed; if you really want to reinstall it, you may want to run ‘ghcup rm cabal 3.4.0.0’ first
emanuele@emanuele-HP-260-G1-DM:~/git/cardano-node$ ghcup rm cabal 3.4.0.0
[ Warn ] New GHC version available: 9.0.1. To upgrade, run ‘ghcup install ghc 9.0.1’
emanuele@emanuele-HP-260-G1-DM:~/git/cardano-node$ ghcup install cabal 3.4.0.0
[ Warn ] New GHC version available: 9.0.1. To upgrade, run ‘ghcup install ghc 9.0.1’
[ Info ] downloading: https://downloads.haskell.org/~cabal/cabal-install-3.4.0.0/cabal-install-3.4.0.0-x86_64-ubuntu-16.04.tar.xz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3631k 100 3631k 0 0 1904k 0 0:00:01 0:00:01 --:–:-- 1903k
[ Info ] verifying digest of: cabal-install-3.4.0.0-x86_64-ubuntu-16.04.tar.xz
[ Info ] Unpacking: cabal-install-3.4.0.0-x86_64-ubuntu-16.04.tar.xz to /tmp/ghcup-f505dbef7dfc5312
[ Info ] Installing cabal
[ Info ] Cabal installation successful
emanuele@emanuele-HP-260-G1-DM:~/git/cardano-node$ ghcup set cabal 3.4.0.0
[ Warn ] New GHC version available: 9.0.1. To upgrade, run ‘ghcup install ghc 9.0.1’
[ Info ] Cabal 3.4.0.0 successfully set as default version
emanuele@emanuele-HP-260-G1-DM:~/git/cardano-node$ cabal --version
cabal-install version 3.0.0.0
compiled using version 3.0.1.0 of the Cabal library
emanuele@emanuele-HP-260-G1-DM:~/git/cardano-node$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.8.4

seems i can’t go ahead with cabal and ghc version :frowning: