Repository error

Vicktoria

Active Member
Credits
1,019
Hello all, in trying to fix other issues I evidently messed up my repository set up. Can someone help me get it fixed. I was following the directions about how to get BIOS fixed and I know they directed me to enter some repository additions through terminal. Now I'm getting these messages: Help!!!

D
Repository error 2020-08-06 16-15-41.png


Reposit 2  2020-08-06 16-20-13.png


I didn't see this till I tried to update software. Thank you in advance for your assistance.
 


arochester

Moderator
Staff member
Gold Supporter
Credits
2,098
What does /etc/apt/sources.list.d/* say?
 

sp331yi

Well-Known Member
Credits
4,614
Something wrong on the first line of
/etc/apt/sources.list.d/additional-repositories.list

Tell us what it says there, in that file, please.
 

Vicktoria

Active Member
Credits
1,019
Arochester and Wiley One Thanks for the reply. Apologies my brain isn't working. I typed in that path /etc/apt/sources.list.d/additional-repositories.list with and without (Suite) and got no such command with Suite and /home/victoria without suite. Then I thought an etc directory isn't in home. So I went to the etc directory and into the additional repositories file. The only file in the [read only] list under /etc/apt/sources.list.d says:
deb https://dl.winehq,org/wine-builds
sudo apt-add-repository deb

which sounds familiar as what the 'How to' page told me to type.

Excuse this format. I didn't know how else to get the info here. Please tell me if and how I should report it, as the error message asks.
Also I was trying to put the info on a new usb to walk it over from the Linux machine which can't get on dial-up, and I have another question. There are files on the sandisk, do I need them on there, and would they interfere with an attempt to make a bootable disk with the usb drive? Thanks guys, my apologies for my incompetence.
 

sp331yi

Well-Known Member
Credits
4,614
RE: files on sandisk -- if you don't need them and they are the proprietary BS that comes with sandisk, just fdisk and format it as you desire!
. . . The only file in the [read only] list under /etc/apt/sources.list.d says:

deb https://dl.winehq,org/wine-builds
sudo apt-add-repository deb

which sounds familiar as what the 'How to' page told me to type.

Excuse this format. I didn't know how else to get the info here. Please tell me if and how I should . . .
put the data from etc/apt/sources.list.d within </> Code (Insert pull-down), like so
Code:
deb https://dl.winehq,org/wine-builds/

sudo apt-add-repository deb
Read only? log in as root to be able to edit the file
Code:
sudo passwd root
while offline

Just place a # in front of the offending line (comment it out), making sure the repo line to wine is correct, also (which I am not certain it is or isn't)
Code:
deb https://dl.winehq,org/wine-builds/

#sudo apt-add-repository deb
save the file and exit to prompt.
Code:
sudo apt-get update
and see what happens
 

arochester

Moderator
Staff member
Gold Supporter
Credits
2,098
Just place a # in front of the offending line
If you try to do this as a normal user it will tell you that it can't.

You need to be Root to get a change to stay.

One easy (and perhaps dangerous) way to do this is to start your file-manager with sudo. Your file manager might be Thunar ot PCManFM or something else. Type IN THE TERMINAL e.g.
Code:
sudo thunar
Then navigate in the file-manager to the offending file. Right clickpen the file with your text editor. Might be Mousepad or Leafpad or something else. It still has sudo rights because you opened the file-manager with sudo. Edit the file in the text editor.

Save the file and begin the reverse process of shutting things down to stop being Root.

(I say perhaps dangerous because any mistake will stay - until changed.)
 

Vicktoria

Active Member
Credits
1,019
Wiley One, Thanks for the info about the Sandisk, I suspected it was unnecessary advertisement.
Now on to the repository file issue. I'm not clear on the directions. Ok, I've re-read a few times and I think I'm suppose to 'comment out' by putting a hash # before the <sudo apt-add-repository deb> line. I think I can do that in terminal with nano. I'll have to wait for hispeed access to try the update.
How do I find out what the wine repository addy should be?
The error message said the issue was the malformed 1 line. Your direction is to # the sudo line which I'd count as the 2nd line...or does the http line not count because it is an address?

Arochester, Thanks for the lesson of another way to edit 'read only' files. I'll study it. I'll probably use nano and terminal since I'm familiar with that process.
 

arochester

Moderator
Staff member
Gold Supporter
Credits
2,098
Assuming Linux Mint 20 the command should have been
Code:
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'
This should have resulted in only the following being written to sources:
Code:
deb https://dl.winehq.org/wine-builds/ubuntu/ focal main
You seem to have ended up with
Code:
sudo apt-add-repository deb
added incorrectly

Source - http://ubuntuhandbook.org/index.php/2020/07/onstall-wine-5-12-ubuntu-20-04-linux-mint-20/
 

Vicktoria

Active Member
Credits
1,019
Arochester, it seemed to have worked. I tried to open and edit the file with nano and the file showed nothing, so thanks for your instructions. I followed them and was able to edit the file in Nemo evidently, even though there were error messages or warnings on the terminal screen. The 'software manager' shield has a green checkmark now and the file remains changed after closing and reopening it. I'm using Cinnamon 19.3. I'm trying to copy the text of the terminal since it is near impossible to upload an image on dial-up. I haven't succeeded yet. I can paste it here when next on hispeed if you want to see it. Then I can confirm the issue is fixed as well.
 


Members online


Latest posts

Top