Updating error

11 réponses [Dernière contribution]
Davide0
Hors ligne
A rejoint: 12/01/2015

Hello, I just installed the latest Linux libre kernel because I had problems with brightness with the default trisquel kernel. Now I get this message from the notifications:

"Unknown error '' (E:opening /etc/app/sources.list.d/deb.list - ifstream::ifstream (13: permission denied) this usally means that your installed packages have unmet dependecies"

In "system settings" I also can't open Language support and software updater. What can I do?

Magic Banana

I am a member!

I am a translator!

Hors ligne
A rejoint: 07/24/2010

Please show us the output of this command:
$ ls -l /etc/apt/sources.list.d

Davide0
Hors ligne
A rejoint: 12/01/2015

total 8
-rw-r--r-- 1 root root 70 lug 1 17:27 deb.list
-rw-r--r-- 1 root root 70 lug 1 17:27 deb.list.save

But now seems not to show me the error again after editing sources and adding this "deb https://linux-libre.fsfla.org/pub/linux-libre/freesh/ freesh main".

But now the update manager wants me to install linux loowlatency kernel updates, what should I do?

Magic Banana

I am a member!

I am a translator!

Hors ligne
A rejoint: 07/24/2010

As long as you use newer versions (taken from Jxself's repository) of the kernel, the older versions will not be used by default because GRUB prefers the newest version (you can change its configuration or manually boot an older version from the "Advanced options" of GRUB's menu). Installing kernels you do not use takes useless space but does no other harm.

Do you actually want to use Jxself's kernels (has it helped with your brightness issue?) or would you rather go back to using Trisquel's default version?

Davide0
Hors ligne
A rejoint: 12/01/2015

When I installed the Jxself's kernels my brightness works perfectly fine but I'm afraid to switch to Trisquel's default version. Do you think it's a good idea to keep the Jxself's version? Will be update my kernel automatically? If so I wuold like to keep only Jxself's kernels, but I don't know how...

Magic Banana

I am a member!

I am a translator!

Hors ligne
A rejoint: 07/24/2010

Keep the newer kernels if they better support your hardware! If you added Jxself's Linux-libre repository (not a manual installation of one .deb package), then you will get frequent updates: only security updates until the version stops being supported if you installed "linux-libre-4.9" or "linux-libre-4.11" (in the latter case: the support will not last long!); also updates to brand new versions if you installed "linux-libre-lts" or "linux-libre". See https://jxself.org/linux-libre/ for more information.

Updates of the kernel (even mere security updates) eat up disk space because they do not actually substitute the previous versions. In this way, if the newer version does not properly drive your hardware (very rare) or even does not boot (I have never seen this), you can still boot the previous version. But having more than two kernels installed is only a waste of disk space (no other harm): you should remove the older kernels (all except the last one and maybe the one before, for safety) from time to time.

The "Synaptic Package Manager", in the "System Settings" is one user-friendly way to do it: search "linux-", click on the "S" header to have the installed packages listed first, select (Ctrl+click on the rows) all the packages whose names start with "linux-" and include a version number which is not the highest (or the second highest), right click on the selection, "Mark for Complete Removal" (an entry in the contextual menu), "Apply" (a button in the tool bar) and confirm the removal (in a window where you can read how much disk space will be freed).

You can indeed stop installing updates of Trisquel's default kernel too (version 3.13.0, in the case of Trisquel 7): you do not use it anymore. Just remove the related metapackage(s): in your case, "linux-image-lowlatency", which is the image (what takes most of the space), but you may have installed other (now useless) meta-packages that relate to Trisquel's default kernel ("linux-headers-lowlatency" for instance).

About your permission error, it relates to a file that does not exist anymore! Is the problem still present? If not, a reboot has probably solved it (somehow).

Davide0
Hors ligne
A rejoint: 12/01/2015

Ok, thank you very much! I think I'll keep Linux-Libre as default but also as second option the Trisquel's kernel latest version (two kernels: Linux Libre and latest version of Trisquel's kernel). But I don't understand if the Linux-Libre kernel will be supported? And what is the difference between Trisquel's Kernel and latest Linux Libre Kernel? Is the Trisquel's version more secure or newer?

PS
My permission error doesn't appear anymore.

PPS
If I type "uname -r" it says I'm using "4.11.8-gnu", it may be a useful information...

Magic Banana

I am a member!

I am a translator!

Hors ligne
A rejoint: 07/24/2010

Both kernels are 100% free software (the blobs in vanilla Linux are removed). The main difference is the version: the older version, Trisquel's default, has been more tested but does not have the latest features introduced in Linux (in particular the latest drivers that support newer hardware). Different configuration of Trisquel's kernels ("generic'", "lowlatency", etc.) are packaged too, if you happen to have specific needs (musicians want low-latency kernels for instance).

Given the kernel you have, you installed either:

  • the "linux-libre" package and will get really new versions of the kernel (not only security fixes) every two months or so;
  • or the "linux-libre-4.11" and you are stuck on version 4.11 (which has a very limited support in time, i.e., you will stop receiving security fixes soon: this month!) until you manually install the newer version ("linux-libre-4.12").

The second option does not seem to make sense (manual work) but it allows to wait a little before jumping from one version to the next one. That said, for more stability (yet a more modern kernel than Trisquel's default), one can install "linux-libre-lts" ("LTS" means "Long-Time Support").

Again: https://jxself.org/linux-libre/ explains everything.

jxself
Hors ligne
A rejoint: 09/13/2010

To tag on, based on what Linus Torvalds said when 4.12 Release Candidate #7 came out last week [0], I am hoping for the final version of 4.12 to be released sometime tomorrow... Sunday July 2 (going by the time zones here in North America; adjust to your local time needed.)

Unless, as he says, he decides to do 4.12 Release Candidate #8 instead, in which case I'll expect the final version of 4.12 to be the following Sunday... July 9.

Either way, it's soon.

[0] https://lwn.net/Articles/726412/

Davide0
Hors ligne
A rejoint: 12/01/2015

OK thanks to everyone! But now I have another problem. Sometimes when I restart my laptop the network doesn't work and nothing appear on the bar near the clock and when I try to open network settings it says: "The system network service is not compatible with this version". But when a restart the laptop twice or three times the network works fine... It seems to work randomly

Also another thing: in the grub menu when I select "advanced option for Trisquel" it asks me the username and the password but then it comes back to the main grub menu. I don't know how to select a previous Trisquel's kernel image...

Magic Banana

I am a member!

I am a translator!

Hors ligne
A rejoint: 07/24/2010

The user is "grub" and the password was randomly generated when Trisquel was installed. You can read it at the very end of /etc/grub.d/01_PASSWORD. Instead of learning that password, I suggest you to get rid of it... since it "only serve[s] to make it difficult to recover broken systems". That is what the developers of GRUB say:

By default, the boot loader interface is accessible to anyone with physical access to the console: anyone can select and edit any menu entry, and anyone can get direct access to a GRUB shell prompt. For most systems, this is reasonable since anyone with direct physical access has a variety of other ways to gain full access, and requiring authentication at the boot loader level would only serve to make it difficult to recover broken systems.
https://www.gnu.org/software/grub/manual/grub.html#Security

  1. Open a terminal (emulator).
  2. Open /etc/grub.d/01_PASSWORD (what requires administrative rights) with your favorite text editor (here GEdit):
    $ gksu gedit /etc/grub.d/01_PASSWORD
  3. Add the "#" character at the beginning of all lines that do already not start with this character (or even delete these lines).
  4. Save the modifications.
  5. Make the configuration change be taken into consideration:
    $ sudo update-grub
Davide0
Hors ligne
A rejoint: 12/01/2015

Ok thank you! And how can I solve the problem that sometimes when I restart the OS the network doesn't work?