Commands not found

Questions about Wine on Linux
Locked
Alfie_ca
Level 1
Level 1
Posts: 8
Joined: Mon May 06, 2019 1:42 pm

Commands not found

Post by Alfie_ca »

I am still trying to get rid of the repository I have previously installed for getting the FAudio which was supposed to have a release file..
The Update manager can't find the Release file and always pops up the Error pop-up.
This Error pop-up long noodle is full screen high, and to get rid of it I have to reboot the OS.
There are no means to close the warning that I can find.
Tried for hours to find solution to get rid of this repository, with the terminal, and have not found the direct command to do that.
Actually have I not found no help for removing a repository.
Have displayed the commands with terminal Help.
When I type them with or without sudo :

This first line's https: content is displayed on the Update Manager Error pop-up:
alfie@alfie-office-machine:~$ 'https://download.opensuse.org/repository-ubuntu-18.4 bionic Release'
bash: https://download.opensuse.org/repository-ubuntu-18.4 bionic Release: No such file or directory

Have tried with and without 'Resources' and any other which way.
The commands 'edit-sources', 'sources' are displayed by Help command list.

alfie@alfie-office-machine:~$ remove 'https://download.opensuse.org/repository-ubuntu-18.4 bionic'
WARNING:root:could not open file '/etc/apt/sources.list'
alfie@alfie-office-machine:~$ edit-sources
WARNING:root:could not open file '/etc/apt/sources.list'
edit-sources: command not found
alfie@alfie-office-machine:~$ sources
WARNING:root:could not open file '/etc/apt/sources.list'
sources: command not found

When I directly open the the file '/etc/apt/sources.list' with the text editor, this repository is not in it.
Question: why is the Update manager still popping up the warning? And using it as if it still found it there?

Thank you in advance.
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Commands not found

Post by jkfloris »

When I directly open the the file '/etc/apt/sources.list' with the text editor, this repository is not in it.
What is the output of:

Code: Select all

grep -r "https://download.opensuse.org/repository-ubuntu-18.4" /etc/apt/
WARNING:root:could not open file '/etc/apt/sources.list'
What are the outputs of:

Code: Select all

ls -als /etc/apt/sources.list

#and

fuser /etc/apt/sources.list
User avatar
dimesio
Moderator
Moderator
Posts: 13205
Joined: Tue Mar 25, 2008 10:30 pm

Re: Commands not found

Post by dimesio »

jkfloris wrote: What is the output of:

Code: Select all

grep -r "https://download.opensuse.org/repository-ubuntu-18.4" /etc/apt/
That's not the correct URL for the OBS repository. The URL is

Code: Select all

https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/ ./
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Commands not found

Post by jkfloris »

@dimesio
Thanks for noticing this!

@Alfie_ca
You can ignore that grep command. Can you post the output of:

Code: Select all

grep -ErH ^deb /etc/apt/sources.list*
Alfie_ca
Level 1
Level 1
Posts: 8
Joined: Mon May 06, 2019 1:42 pm

Re: Commands not found

Post by Alfie_ca »

Thank you for your questions.
Here is my terminal output to those:

alfie@alfie-office-machine:~$ grep -r "https://download.opensuse.org/repository-ubuntu-18.4" /etc/apt/
alfie@alfie-office-machine:~$ ls -als /etc/apt/sources.list
ls: cannot access '/etc/apt/sources.list': No such file or directory
alfie@alfie-office-machine:~$ fuser /etc/apt/sources.list
Specified filename /etc/apt/sources.list does not exist. ---- ????
alfie@alfie-office-machine:~$

Not sure what this means, but the directory is there, and so is the sources.list
/etc/apt/sources.list.d/additional-repositories.list
/etc/apt/sources.list.d/gezakovacs-ppa-bionic.list
/etc/apt/sources.list.d/mozillateam-ppa-bionic.list
/etc/apt/sources.list.d/official-package-repositories.list
/etc/apt/sources.list.d/opera-stable.list

to jkfloris:
alfie@alfie-office-machine:~$ grep -ErH ^deb /etc/apt/sources.list*
/etc/apt/sources.list.d/additional-repositories.list:deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main
/etc/apt/sources.list.d/additional-repositories.list:deb https://download.opensuse.org/repository-ubuntu_18.4/ bionic main
/etc/apt/sources.list.d/mozillateam-ppa-bionic.list:deb http://ppa.launchpad.net/mozillateam/ppa/ubuntu bionic main
/etc/apt/sources.list.d/mozillateam-ppa-bionic.list:deb-src http://ppa.launchpad.net/mozillateam/ppa/ubuntu bionic main
/etc/apt/sources.list.d/opera-stable.list:deb https://deb.opera.com/opera-stable/ stable non-free #Opera Browser (final releases)
/etc/apt/sources.list.d/skype-stable.list:deb [arch=amd64] https://repo.skype.com/deb stable main
/etc/apt/sources.list.d/gezakovacs-ppa-bionic.list:deb-src http://ppa.launchpad.net/gezakovacs/ppa/ubuntu bionic main
/etc/apt/sources.list.d/official-package-repositories.list:deb http://packages.linuxmint.com tessa main upstream import backport
/etc/apt/sources.list.d/official-package-repositories.list:deb http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
/etc/apt/sources.list.d/official-package-repositories.list:deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
/etc/apt/sources.list.d/official-package-repositories.list:deb http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
/etc/apt/sources.list.d/official-package-repositories.list:deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
/etc/apt/sources.list.d/official-package-repositories.list:deb http://archive.canonical.com/ubuntu/ bionic partner
alfie@alfie-office-machine:~$

Again thank you all.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Commands not found

Post by Bob Wya »

@Alfie_ca,

Please can you use the forum Code tags for delimiting blocks of terminal commands+output:

Code: Select all

...
As it is... Your posts are highly unreadable... :roll:

Thanks
Bob
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Commands not found

Post by jkfloris »

Open /etc/apt/sources.list.d/additional-repositories.list as root in your favorite text editor and delete the line

Code: Select all

deb https://download.opensuse.org/repository-ubuntu_18.4/ bionic main
WARNING:root:could not open file '/etc/apt/sources.list'
To get rid of this warning, move /etc/apt/sources.list.d/official-package-repositories.list to /etc/apt/sources.list

Code: Select all

sudo mv /etc/apt/sources.list.d/official-package-repositories.list /etc/apt/sources.list
Don't forget to run apt update

Code: Select all

sudo apt update
If apt print some errors or warnings, please post the terminal output.
(Use the forum Code-tags 8) )
Locked