LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-24-2020, 05:07 AM   #16
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053

Almost all your error messages seem to be related to snappy. I recommend installing a distro that does not use snaps or flatpaks or some such by default.

Quote:
Originally Posted by Trent29 View Post
ELI5
Man, that reddity-fashionable excuse for not doing your homework really ticks me off.
 
Old 05-24-2020, 06:45 AM   #17
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
I would rather try apt install vlc (without snap).
 
Old 05-24-2020, 12:18 PM   #18
Trent29
Member
 
Registered: Dec 2018
Posts: 44

Original Poster
Rep: Reputation: Disabled
Thanks BW-userx, sudo su worked.

pan64, I've tried apt-get install. This is what I get (posted earlier):

user@user:~$ sudo apt-get install vlc
Reading package lists... Done
Building dependency tree
Reading state information... Done

No apt package "vlc", but there is a snap with that name.
Try "snap install vlc"


jefro, the command sudo rm -rf /var/lib/apt/lists/* effectively removed the contents of the lists folder. However when I tried to run the command sudo apt-get update" https://askubuntu.com/questions/4160...mismatch-error, all I got was a > followed by a solid cursor. Any more suggestions?

root@user:/# sudo rm -rf /var/lib/apt/lists/*
root@user:/# sudo apt-get update" https://askubuntu.com/questions/4160...mismatch-error
> rm -rf /var/lib/apt/lists/*

root@user:/# sudo apt-get update" https://askubuntu.com/questions/4160...mismatch-error
rm -rf /var/lib/apt/lists/*
apt-get update https://askubuntu.com/questions/4160...mismatch-error
>
 
Old 05-24-2020, 05:35 PM   #19
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
(Putting your commands and outputs in code tags here will make them easier to read -- see the link in my sig)
Quote:
Originally Posted by Trent29 View Post
jefro, the command sudo rm -rf /var/lib/apt/lists/* effectively removed the contents of the lists folder. However when I tried to run the command sudo apt-get update" https://askubuntu.com/questions/4160...mismatch-error, all I got was a > followed by a solid cursor. Any more suggestions?

Code:
root@user:/# sudo rm -rf /var/lib/apt/lists/*
root@user:/# sudo apt-get update" https://askubuntu.com/questions/4160...mismatch-error
>
As posted, you entered a command containing an opening quote with no closing quote...that's what caused the > prompt. The shell is waiting for the closing quote; you can just type it at the > prompt, but best would be to not leave it out in the first place.

And I suspect the command jefro wanted you to run was simply
sudo apt-get update
without the quote or the url.

Last edited by scasey; 05-24-2020 at 05:39 PM.
 
1 members found this post helpful.
Old 05-25-2020, 11:02 AM   #20
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
As I and others in here suggested, try a different distro that does not use snap or flat pack. They to me suck and should have never been implemented let alone conceived.

There are plenty more Linux distros that are worthy of using and work without snap or flat pack.

Arch
Manjaro
Arco Linux
Slackware
Even Debian which ubuntutu comes from. And other’s. Go to distrowatch dot com and look into it.

Last edited by BW-userx; 05-25-2020 at 11:03 AM.
 
Old 05-25-2020, 11:18 AM   #21
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
Quote:
Originally Posted by BW-userx View Post
As I and others in here suggested, try a different distro that does not use snap or flat pack. They to me suck and should have never been implemented let alone conceived.
That would be the last option, if recovering was not successful. (From the other hand this is not a solution to this issue, but probably a solution to the OP).
Quote:
Originally Posted by BW-userx View Post
There are plenty more Linux distros that are worthy of using and work without snap or flat pack.
We know you hate ubuntu, but ubuntu is not that bad.

Additionally I would try to find a solution, but looks like it will take some time.
 
1 members found this post helpful.
Old 05-25-2020, 11:56 AM   #22
Trent29
Member
 
Registered: Dec 2018
Posts: 44

Original Poster
Rep: Reputation: Disabled
OK, thanks scasey. I misunderstood. I'll try that.

I'm trying to stick with Ubuntu, because I'm following a mentor's custom setup and configuration.

Yesterday, I gave the commands listed below and VLC actually started to download to about 40% with a strong internet connection downloading at 300-450 kb/s, then suddenly I got the panic: runtime error: index out of range message and everything below it. Then I tried to install ffmpeg and python3-pip - no luck with those either as you can see way down below. Anyone see anything below that I might have done wrong?


Code:
user@user:/var$ sudo su
[sudo] password for user:
root@user:/var# cp -r /home/user/Desktop/lists/ /var/lib/apt/
root@user:/var# rm -r /home/user/Desktop/lists/
root@user:/var# sudo snap install vlc
panic: runtime error: index out of range [3039] with length 3039 [recovered]
panic: runtime error: index out of range [3039] with length 3039

goroutine 1 [running]:
main.main.func1()
github.com/snapcore/snapd/cmd/snap/main.go:477 +0x95
panic(0x55ccc0ffdc80, 0xc0003466e0)
runtime/panic.go:679 +0x1b6
encoding/json.(*decodeState).skip(0xc000341d08)
encoding/json/decode.go:324 +0xc2
encoding/json.(*decodeState).object(0xc000341d08, 0x55ccc0f72f20, 0xc0000e4ee0, 0x197, 0xc000341d30, 0x7b)
encoding/json/decode.go:666 +0x219e
encoding/json.(*decodeState).value(0xc000341d08, 0x55ccc0f72f20, 0xc0000e4ee0, 0x197, 0x55ccc0f72f20, 0xc0000e4ee0)
encoding/json/decode.go:429 +0x6f
encoding/json.(*decodeState).object(0xc000341d08, 0x55ccc0f6b060, 0xc0000e4ee0, 0x16, 0xc000341d30, 0x7b)
encoding/json/decode.go:823 +0x1394
encoding/json.(*decodeState).value(0xc000341d08, 0x55ccc0f6b060, 0xc0000e4ee0, 0x16, 0xc00051f258, 0x55ccc07e86e0)
encoding/json/decode.go:429 +0x6f
encoding/json.(*decodeState).unmarshal(0xc000341d08, 0x55ccc0f6b060, 0xc0000e4ee0, 0x0, 0x1)
encoding/json/decode.go:179 +0x1fd
encoding/json.(*Decoder).Decode(0xc000341ce0, 0x55ccc0f6b060, 0xc0000e4ee0, 0xc000077440, 0x55ccc0be34a0)
encoding/json/stream.go:73 +0x168
github.com/snapcore/snapd/client.decodeInto(0x55ccc106cc20, 0xc000075300, 0x55ccc0f6b060, 0xc0000e4ee0, 0xc000075300, 0xc0001c3680)
github.com/snapcore/snapd/client/client.go:357 +0x92
github.com/snapcore/snapd/client.(*Client).do(0xc0000f28c0, 0x55ccc0be34a0, 0x3, 0xc0001c3680, 0xe, 0x0, 0x0, 0x0, 0x0, 0x55ccc0f6b060, ...)
github.com/snapcore/snapd/client/client.go:347 +0x3a2
github.com/snapcore/snapd/client.(*Client).doSync(0xc0000f28c0, 0x55ccc0be34a0, 0x3, 0xc0001c3680, 0xe, 0x0, 0x0, 0x0, 0x0, 0x55ccc0f6afa0, ...)
github.com/snapcore/snapd/client/client.go:374 +0xdd
github.com/snapcore/snapd/client.(*Client).Change(0xc0000f28c0, 0xc000249d80, 0x2, 0xc00034e401, 0x0, 0x0)
github.com/snapcore/snapd/client/change.go:84 +0xd6
main.waitMixin.wait(0xc0000f28c0, 0x55ccc0be0000, 0xc000249d80, 0x2, 0x0, 0x0, 0x0)
github.com/snapcore/snapd/cmd/snap/wait.go:88 +0x36e
main.(*cmdInstall).installOne(0xc00029c000, 0x7ffdd2cc38b9, 0x3, 0x0, 0x0, 0xc0002b64e0, 0x55ccc1008060, 0x55ccc106c3a0)
github.com/snapcore/snapd/cmd/snap/cmd_snap_op.go:491 +0x316
main.(*cmdInstall).Execute(0xc00029c000, 0xc000237d40, 0x0, 0x2, 0xc00029c000, 0x1)
github.com/snapcore/snapd/cmd/snap/cmd_snap_op.go:596 +0x3d7
github.com/snapcore/snapd/vendor/github.com/jessevdk/go-flags.(*Parser).ParseArgs(0xc0002602a0, 0xc000032190, 0x2, 0x2, 0xc0002455f0, 0xc000203cd0, 0x55ccc064cfbd, 0x55ccc0fd38a0, 0xc0002455f0)
github.com/snapcore/snapd/vendor/github.com/jessevdk/go-flags/parser.go:333 +0x8e7
github.com/snapcore/snapd/vendor/github.com/jessevdk/go-flags.(*Parser).Parse(...)
github.com/snapcore/snapd/vendor/github.com/jessevdk/go-flags/parser.go:190
main.run(0xc000203de0, 0xe)
github.com/snapcore/snapd/cmd/snap/main.go:515 +0xa7
main.main()
github.com/snapcore/snapd/cmd/snap/main.go:482 +0x371
root@user:/var# cd /home/user
root@user:/home/user# sudo snap install vlc
error: snap "vlc" has "install-snap" change in progress
root@user:/home/user# sudo su
root@user:/home/user# cd /
root@user:/#
_______________________________________________________________________________
Code:
user@user:~$ sudo apt-get install -y ffmpeg
[sudo] password for user:
Reading package lists... Done
Building dependency tree
Reading state information... Done

No apt package "ffmpeg", but there is a snap with that name.
Try "snap install ffmpeg"

E: Unable to locate package ffmpeg
user@user:~$ sudo snap install ffmpeg
error: cannot install "ffmpeg": snap "ffmpeg" supported architectures () are
incompatible with this system (amd64)
user@user:~$ sudo apt-get install -y python3-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python3-pip is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'python3-pip' has no installation candidate
user@user:~$ cd /
user@user:/$ sudo su
root@user:/# sudo apt-get install -y ffmpeg
Reading package lists... Done
Building dependency tree
Reading state information... Done

No apt package "ffmpeg", but there is a snap with that name.
Try "snap install ffmpeg"

E: Unable to locate package ffmpeg
root@user:/# snap install ffmpeg
error: cannot install "ffmpeg": snap "ffmpeg" supported architectures () are
incompatible with this system (amd64)
root@user:/#
 
Old 05-25-2020, 11:57 AM   #23
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
A fresh install would solve this of course.

Have you tried:

$ sudo snap remove vlc

??? For apt there's normally --reinstall flag, perhaps snap has one too. Only ever used flatpak though.

$ man snap
 
Old 05-25-2020, 02:52 PM   #24
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,984

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
It may be that a clean install may be the most easy solution.

I guess it is possible you have some other issue. Ram bad/too little, bad cpu or overclocked, bad drive/controller or even power supply.

You have a few things going on here.

One is that you can't seem to properly update. Part of that update involves snap.

Snap is different from apt.

So why now is apt seemingly bad? You can't really fix one and not the other.

By this time you should have been able to do clean install. Then the very first thing is to fully update it.

Last edited by jefro; 05-25-2020 at 02:55 PM.
 
1 members found this post helpful.
Old 05-26-2020, 01:20 PM   #25
Trent29
Member
 
Registered: Dec 2018
Posts: 44

Original Poster
Rep: Reputation: Disabled
OK, thanks for all your responses. Much appreciated.

At this point I've put in a lot of time configuring the browser and it works great, so I'll probably give it some time before I decide to start over with a clean install.
 
1 members found this post helpful.
Old 06-05-2020, 04:57 PM   #26
Trent29
Member
 
Registered: Dec 2018
Posts: 44

Original Poster
Rep: Reputation: Disabled
Convinced Ubuntu 20.04 Is Defective

I just wanted to report to everyone who's helped me on this that I've reached the conclusion that Ubuntu 20.04 is either inherently defective or too buggy (almost like an alpha version) to be used by new users. The whole reason I started trying it out is because I thought it would be easier than Debian.

I started from scratch again with a brand new d/l of the .iso, which was exactly the same # of bytes as the first one I used. Reinstalled it inside the VM with the same 2 errors found with the disk check, even though no errors found using chkdisk on the Windows host. No problems with communication to the internet or repositories, but the same old problems with Ubuntu and snap: vlc partially downloads via snap then resets and starts over and over and over from 0% no matter how long you wait for it, apt update won't complete and gives hash errors, nothing will download in spite of lots of uncommented mirrors, sources etc. And there doesn't seem to be any issue with the host or VM RAM

So this time I KNOW there were no newbie-induced install mistakes. Since I'm making progress on Debian, I think I'm going to cut my losses and forsake this lousy Ubuntu distro that in my opinion would cause any newbie who is even considering a switch in OS to run back to Windows and iOS with their tail between their legs.
 
Old 06-06-2020, 03:31 AM   #27
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
I think Ubuntu's LTS versions should be stable enough for you.
However, I still criticise that they use snappy by default and without making the user aware of the fundamental differences to a normal software install.
 
Old 06-11-2020, 03:26 AM   #28
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
I just switched my RPi 4B 4GB to ubuntu server 20.04 from raspbian. On raspbian sharing a ZFS mirror over NFS would crash often if you bounced around to a couple videos or around in a single video. Ubuntu is stable doing the same function. And I got ZFS going with the package management system, rather than from source.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
When They Killed JFK They Killed America-Paul Craig Roberts cousinlucky General 11 05-15-2016 10:02 PM
MPlayer demux error when playing DVD's + Now has killed VLC... Daedra Slackware 3 06-09-2010 03:55 PM
VLC error: VLC could not open the file "/usr/share/vlc/skins2/text.bmp". brjoon1021 Ubuntu 1 01-14-2009 10:48 PM
find history of a job killed by "kernel: Out of Memory: Killed process" poulacou Linux - Server 3 09-20-2007 04:24 PM
Killed by memory during download Haakon Linux - Newbie 2 12-16-2001 05:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration