LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 01-31-2023, 04:44 PM   #1
carl a
LQ Newbie
 
Registered: May 2019
Posts: 20

Rep: Reputation: Disabled
wsl2 ubuntu 22.04 repository


I am using window 10 subsystem for linux trying to learn linux better and downloaded audio software to fix the no sound problem and now the update repository can not update properly. How can you fix the update issue when there is no available repository?
 
Old 01-31-2023, 07:02 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,152

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Given your prior failure with this on Hyper-V as well, you might be better off trying Linux as a guest under VirtualBox. Generally works ok.

WSL2 is implemented as a minimal VM, different to the original WSL. It is not a full Linux environment, hence my suggestion to try VBox. None-the-less, it looks like it has a pretty normal sources.list, so the question becomes what did you do to mess the repos up, and what messages are you getting ?.
If it all gets too ugly, just delete it and try something else.
 
Old 01-31-2023, 07:23 PM   #3
carl a
LQ Newbie
 
Registered: May 2019
Posts: 20

Original Poster
Rep: Reputation: Disabled
Thanks for the swift reply

Thank you so much for addressing my situation and I see that you are aware of my pass adventures. I kept plugging and pushing until I stumble upon a fix. First I installed nautilus and went to the/etc/apt/sources.list, saw the ppa that was causing the problem and remove it from the terminal ( sudo add-apt-repository --remove ppa [name] ) The windows subsystem is much faster than the others virtualizations thats out there to me.Thanks again for your input, I will be back again on this forum to acquire more knowledge from you guys.
 
Old 02-01-2023, 03:52 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,152

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Glad you sorted it out.

I also like WSL because of it native integration. But I've always simply used it in CLI for running things like awk or perl against Windows files; only bothered with a GUI in the last couple of weeks as an experiment.
 
Old 02-04-2023, 11:32 PM   #5
carl a
LQ Newbie
 
Registered: May 2019
Posts: 20

Original Poster
Rep: Reputation: Disabled
Another question dealing with the same subject

I see that dealing with the windows subsystem linux there are scripts that can and should be edited with nano or vim, and the video instructors both mention the words comment and uncomment without explaining what it is and how to do what their trying to get across to the viewers. I search the web and I find there is a lack of instructions on how to perform this task . If you or anyone else has this knowledge or where to get it please inform me. Somewhere I read that what when the student is ready a teacher will appear if that's the case than let's go.
 
Old 02-05-2023, 03:48 AM   #6
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,569

Rep: Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499
The 'comment' and 'uncomment' in your simply mean to put a hash mark (#) at the beginning of the line. If you had done this rather than deleting the line you mention in that file, it would have accomplished the same thing. This works also in Grub boot files, bash scripts and others. With a # at the beginning of the line, that line will not be read. I'm not sure this is what you are asking though?
 
Old 02-05-2023, 11:37 AM   #7
carl a
LQ Newbie
 
Registered: May 2019
Posts: 20

Original Poster
Rep: Reputation: Disabled
Thanks for the response

Okay now I understand a little better, being new to linux and finally deciding to learn linux will all my might, I am eager to be very skilled at operating this linux machine.Looking on youtube at the teachers of nano and vim many times they assumme that the audience already know how to navigate the system the way they do which frustrate the beginners because they go from step one to step 5 without explaination. Never heard of commnent or uncomment or what"s the purpose of the whole matter. Thanks again for the insight.If you or any other forum member has more knowledge on this subject feel free to share it at your leisure.
 
Old 02-06-2023, 04:18 AM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,569

Rep: Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499
Quote:
Never heard of commnent or uncomment or what"s the purpose of the whole matter
The basic purpose is explained at the link below for bash scripts. It is helpful to have comments (explanations) of what specific code does. Comments are used in other programming languages and boot (grub) files also. You can comment out a line or more when testing problems with code to see if it is the problem rather than deleting and then having to rewrite it when you find it is not the problem. You can do an online search for comment in bash (or other language) scripts and get many sites. Links below for html and php also.

https://phoenixnap.com/kb/bash-comment

https://blog.hubspot.com/website/comment-out-in-html

https://blog.hubspot.com/website/php-comments
 
Old 02-06-2023, 08:43 AM   #9
carl a
LQ Newbie
 
Registered: May 2019
Posts: 20

Original Poster
Rep: Reputation: Disabled
Excellent info

That's what I'm talking about, the information and the links are on point. You and the other members of this forum has helped me acquire the the tools and knowledge that will advance my learning this rare skill in linux. Your response is a valued blessing. Thanks
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to make the command "last", to work in WSL2 Ubuntu johnprogrammer Linux - Desktop 15 01-04-2022 06:21 PM
Ubuntu 20.04 on a Win10 Home with WSL2 installed. No sudo! Snugbug Ubuntu 16 07-29-2021 08:02 AM
LXer: DirectX comes to Linux (via WSL2): Microsoft unveils tricks needed to flash a GPU at a penguin LXer Syndicated Linux News 0 05-20-2020 07:21 PM
LXer: Linux 5.1, Red Hat's RHEL 8, Ubuntu Touch, GCC, App Store, Alpine, WSL2 | This Week in Linux 66 LXer Syndicated Linux News 0 05-14-2019 06:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 12:30 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