Issue with updating Linux and the sources.list.d folder (What is happening?)

ximeng86

New Member
Joined
May 22, 2024
Messages
16
Reaction score
2
Credits
134
Hi,

I guess I created by mistake some additional repositories while trying to install R on Linux Mint 21.3 Cinnamon

Here is a snapshot of the disaster:

Screenshot from 2024-07-03 12-50-42.png


I guess I have to remove the "additional-repositories.list.save" and the other 2 on the right of that one...but I don't have permission to remove those.

Furthermore, this has greated a serious error not allowing me to update the system any longer. Here is the error I get:

E: Type 'sudo' is not known on line 2 in source list /etc/apt/sources.list.d/additional-repositories.list
E: The list of sources could not be read.
E: _cache->open() failed, please report.

W: Ignoring file 'additional-repositories.list.save.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
 


Can you not use the sudo command or su to root user in a terminal session?

I always install good old mc(Midnight Commander) and use it as root to tidy things up at times.

And what, prey tell, is R?
 
Last edited:
I guess I have to remove the "additional-repositories.list.save" and the other 2 on the right of that one
You have 4 files to remove called "additional-repositories..."

run sudo rm filename to remove them followed by sudo apt update

If still having issues share output of cat /etc/apt/sources.list.d/official-package-repositories.list
 
Yes, I was just able to remove them with SUDO RM...but I am not sure what happened, I am new to Linux, I tried to install R (statistical software) and I created this mess. Any suggestions?
 
And what, prey tell, is R?
It one of the older programming languages, almost dead but not quite, it is still favoured by maths and science bods
 
Yes, I was just able to remove them with SUDO RM...but I am not sure what happened, I am new to Linux, I tried to install R (statistical software) and I created this mess. Any suggestions?
If you ask me, no program should add or modify repository, this is something which only you should modify manually, so it's great those files were removed.

E: Type 'sudo' is not known on line 2 in source list /etc/apt/sources.list.d/additional-repositories.list
This is even more worrying, sudo should be run by you exclusively not by some file that was installed without you knowing it.

I suggest you also purge whatever R packages were installed and look for alternative, I don't know Mint but maybe someone can suggest you a source that will work.
 
Yes, I was just able to remove them with SUDO RM...but I am not sure what happened, I am new to Linux, I tried to install R (statistical software) and I created this mess. Any suggestions?
HOW are you trying to install R? Via the terminal or some gui based package manager? Default Mint one or what?

Using an online tutorial? If so what one?
 
I think R is - https://www.r-project.org/ also referred to as r-base in Synaptic - it is in the Debian repositories anyway I do not know about Mint but I would imagine it is

sudo apt update
sudo apt install r-base r-base-dev
should install it - so you would not need any extra repository list since it already there - to delete those simply right click and select "Open as Root" and then delete them
 
R ....would appear to be a problem.

It is not in the Linux Mint Software Manager

If it continues to give drama....

sudo apt purge package/app name
 
@ximeng86 ...ospreys info above is correct.

Is the software manager where you downloaded it from ?
 
For those (like me) who are unaware of this app "

R is a system for statistical computation and graphics. It consists of a language plus a run-time environment with graphics, a debugger, access to certain system functions, and the ability to run programs stored in script files.

The design of R has been heavily influenced by two existing languages: Becker, Chambers & Wilks' S and Sussman's Scheme. Whereas the resulting language is very similar in appearance to S, the underlying implementation and semantics are derived from Scheme.

The core of R is an interpreted computer language which allows branching and looping as well as modular programming using functions. Most of the user-visible functions in R are written in R. It is possible for the user to interface to procedures written in the C, C++, or FORTRAN languages for efficiency, and many of R's core functions do so. The R distribution contains functionality for a large number of statistical procedures and underlying applied math computations. There is also a large set of functions which provide a flexible graphical environment for creating various kinds of data presentations.

Additionally, several thousand extension "packages" are available from CRAN, the Comprehensive R Archive Network, many also as Debian packages, named 'r-cran-<name>'.

This package is a metapackage which eases the transition from the pre-1.5.0 package setup with its larger r-base package. Once installed, it can be safely removed and apt-get will automatically upgrade its components during future upgrades. Providing this package gives a way to users to then only install r-base-core if they so desire.
 


Members online


Top