[HOME] [DOWNLOAD] [DOCS] [NEWS] [SUPPORT] [TIPS] [ISSUES] [DONATE]

Problem to update and upgrade whonix

Hi all,
I got a problem since a few days when I do : sudo apt-get update && sudo apt-get dist-upgrade on both whonix gateway and workstation on my qubes R2 OS.

The error is : E: Malformed line 2 in source list /etc/apt/sources.list.d/qubes-r2.list (dist parse)
E: The list of sources could not be read.

How could I fix it please ?

What version of Whonix you using? 9.6 or 10

If you are not using 10, I would suggest you install that. Your current Whonix ProxyVM+AppVM can then also just be switched to use the new versions.

Otherwise you would need to check that file first off to see if it looks corrupt. Move it into another directory even and retry. If you have 9.6 though there were special upgrade instructions as well.

I’m on whonix 10.

It doesn’t seem to be movable to another dir so the problem persists. I gues I have to do a fresh reinstall.

me too!

running qubes r2 and latest whonix 10 templates all clean installed

this is what happens when i try to apt-get in whonix

[code]sudo apt-get update

E: Malformed line 2 in source list /etc/apt/sources.list.d/qubes-r2.list (dist parse)
E: The list of sources could not be read.[/code]

here is what the contents of that file looks like

[code]# Main qubes updates repository
deb [arch=amd64] http://deb.qubes-os.org/r2/vm main
deb-src http://deb.qubes-os.org/r2/vm main

Qubes updates candidates repository

#deb [arch=amd64] http://deb.qubes-os.org/r2/vm -testing main
#deb-src http://deb.qubes-os.org/r2/vm -testing main

Qubes experimental/unstable repository

#deb [arch=amd64] http://deb.qubes-os.org/r2/vm -unstable main
#deb-src http://deb.qubes-os.org/r2/vm -unstable main[/code]

help??

[quote=“zooqubit, post:4, topic:1123”]me too!

running qubes r2 and latest whonix 10 templates all clean installed

this is what happens when i try to apt-get in whonix

[code]sudo apt-get update

E: Malformed line 2 in source list /etc/apt/sources.list.d/qubes-r2.list (dist parse)
E: The list of sources could not be read.[/code]

here is what the contents of that file looks like

[code]# Main qubes updates repository
deb [arch=amd64] http://deb.qubes-os.org/r2/vm main
deb-src http://deb.qubes-os.org/r2/vm main

Qubes updates candidates repository

#deb [arch=amd64] http://deb.qubes-os.org/r2/vm -testing main
#deb-src http://deb.qubes-os.org/r2/vm -testing main

Qubes experimental/unstable repository

#deb [arch=amd64] http://deb.qubes-os.org/r2/vm -unstable main
#deb-src http://deb.qubes-os.org/r2/vm -unstable main[/code]

help??[/quote]

Here is what mine looks like. Yours seems to be missing the distribution ‘wheezy’. If you can edit that file and add the distribution in on each line to look like mine, then run ‘apt-get update’ again.

I will have to look into why the distribution did not get included for Release 2 of Qubes, but did for release 3. Make sure you don’t change the ‘r2’ to ‘r3.0’ though, since as I stated the configuration I posted is for release 3.

# Main qubes updates repository
deb [arch=amd64] http://deb.qubes-os.org/r3.0/vm wheezy main
deb-src http://deb.qubes-os.org/r3.0/vm wheezy main

# Qubes updates candidates repository
deb [arch=amd64] http://deb.qubes-os.org/r3.0/vm wheezy-testing main
deb-src http://deb.qubes-os.org/r3.0/vm wheezy-testing main

# Qubes experimental/unstable repository
#deb [arch=amd64] http://deb.qubes-os.org/r3.0/vm wheezy-unstable main
#deb-src http://deb.qubes-os.org/r3.0/vm wheezy-unstable main
root@host:/etc/apt/sources.list.d# apt-get update

[quote=“nrgaway, post:5, topic:1123”][quote author=zooqubit link=topic=1280.msg8354#msg8354 date=1433509637]
me too!

running qubes r2 and latest whonix 10 templates all clean installed

this is what happens when i try to apt-get in whonix

[code]sudo apt-get update

E: Malformed line 2 in source list /etc/apt/sources.list.d/qubes-r2.list (dist parse)
E: The list of sources could not be read.[/code]

here is what the contents of that file looks like

[code]# Main qubes updates repository
deb [arch=amd64] http://deb.qubes-os.org/r2/vm main
deb-src http://deb.qubes-os.org/r2/vm main

Qubes updates candidates repository

#deb [arch=amd64] http://deb.qubes-os.org/r2/vm -testing main
#deb-src http://deb.qubes-os.org/r2/vm -testing main

Qubes experimental/unstable repository

#deb [arch=amd64] http://deb.qubes-os.org/r2/vm -unstable main
#deb-src http://deb.qubes-os.org/r2/vm -unstable main[/code]

help??
[/quote]

Here is what mine looks like. Yours seems to be missing the distribution ‘wheezy’. If you can edit that file and add the distribution in on each line to look like mine, then run ‘apt-get update’ again.

I will have to look into why the distribution did not get included for Release 2 of Qubes, but did for release 3. Make sure you don’t change the ‘r2’ to ‘r3.0’ though, since as I stated the configuration I posted is for release 3.

[code]

Main qubes updates repository

deb [arch=amd64] http://deb.qubes-os.org/r3.0/vm wheezy main
deb-src http://deb.qubes-os.org/r3.0/vm wheezy main

Qubes updates candidates repository

deb [arch=amd64] http://deb.qubes-os.org/r3.0/vm wheezy-testing main
deb-src http://deb.qubes-os.org/r3.0/vm wheezy-testing main

Qubes experimental/unstable repository

#deb [arch=amd64] http://deb.qubes-os.org/r3.0/vm wheezy-unstable main
#deb-src http://deb.qubes-os.org/r3.0/vm wheezy-unstable main
root@host:/etc/apt/sources.list.d# apt-get update
[/code][/quote]

That’s the problem, but I can’t edit this file because it’s a read only file.

[quote=“Boobsy, post:6, topic:1123”][quote author=nrgaway link=topic=1280.msg8355#msg8355 date=1433513770]

Here is what mine looks like. Yours seems to be missing the distribution ‘wheezy’. If you can edit that file and add the distribution in on each line to look like mine, then run ‘apt-get update’ again.

I will have to look into why the distribution did not get included for Release 2 of Qubes, but did for release 3. Make sure you don’t change the ‘r2’ to ‘r3.0’ though, since as I stated the configuration I posted is for release 3.

# Main qubes updates repository
deb [arch=amd64] http://deb.qubes-os.org/r3.0/vm wheezy main
deb-src http://deb.qubes-os.org/r3.0/vm wheezy main

# Qubes updates candidates repository
deb [arch=amd64] http://deb.qubes-os.org/r3.0/vm wheezy-testing main
deb-src http://deb.qubes-os.org/r3.0/vm wheezy-testing main

# Qubes experimental/unstable repository
#deb [arch=amd64] http://deb.qubes-os.org/r3.0/vm wheezy-unstable main
#deb-src http://deb.qubes-os.org/r3.0/vm wheezy-unstable main
root@host:/etc/apt/sources.list.d# apt-get update

[/quote]

That’s the problem, but I can’t edit this file because it’s a read only file.[/quote]

I don’t know what you use to edit your files with (vi, nano?) Anyway just add sudo in front of the editor to be able to edit it as super user like the following example:

sudo vi /etc/apt/sources.list.d/qubes-r2.list

It didn’t work with vi or nano, but it was a success with kwrite :slight_smile:

For noobs like me :
sudo kwrite /etc/apt/sources.list.d/qubes-r2.list

Thanks for your help :slight_smile:

Never use sudo + gui by the way. See:

[Imprint] [Privacy Policy] [Cookie Policy] [Terms of Use] [E-Sign Consent] [DMCA] [Investors] [Priority Support] [Professional Support]