can't access to my desktop

6 risposte [Ultimo contenuto]
magic
Offline
Iscritto: 07/01/2012

After downloading some softwares the program "add/remove programs " crashed and I couldn't close it or open it again so I decided to restart my computer trying to solve the problem but when I login Ican't access to my desktop and the login window appears again(The password is correct).
I'll appreciate your help.

Magic Banana

I am a member!

I am a translator!

Offline
Iscritto: 07/24/2010

Can you log in a "real" terminal? To do so, press Ctrl+Alt+F1, enter you user name and your password. From there you can try to fix things with commands like 'sudo dpkg --configure -a' or 'sudo apt-get -f install'.

magic
Offline
Iscritto: 07/01/2012

Thanks for replying to me
I logged in a real time,I was asked to enter a sudo password ,Idid and I tried the two commands but the response was "command not found"
My serious problem is that I can't log in "GNOME classic" mode

Magic Banana

I am a member!

I am a translator!

Offline
Iscritto: 07/24/2010

If those commands really are "not found", it is a far more serious problem than not being able to log in the graphical desktop. Nevertheless, I believe you simply mistyped the command (probably forgetting spaces). Here are again, the two commands:
$ sudo dpkg --configure -a
$ sudo apt-get -f install

For your information, the first command aims at configuring packages that would have been unpacked but not configured; the second command aims at fixing some potentially broken packages. I suggest them because you mentioned that the cause of all that is a crash of "add/remove programs", which is a front-end to the package manager.

If the two commands do no not anything interesting, then the problem is (probably) not to be found there. In this case, you should first read some logs. For instance, after an unsuccessful attempt to log in (you can switch back and forth between the graphical session and the terminal by using Ctrl+Alt+F7 and Ctrl+Alt+F1), is there any novelty in /var/log/syslog. To do so, you can read the end of this file with:
$ tail /var/log/syslog

lembas
Offline
Iscritto: 05/13/2010

You might also want to review apt log to see what you installed and caused this mayhem.

less /var/log/apt/history.log

magic
Offline
Iscritto: 07/01/2012

I tried $ sudo dpkg --configure -a,an error message was shown
"dpkg:error: failed to write status record
of << initramfs-tools >> to << /var/lib/dpkg/status >>: No space left on device", whereas I'm sure there's enough space on the disk because my pc is new and it is not full of files and I think the best soulution is that you tell me how can I reinstall Trisquel,thanks.

Magic Banana

I am a member!

I am a translator!

Offline
Iscritto: 07/24/2010

If you want to check the available space from the terminal, here is the command (you can copy its output in this thread):
$ df

To reinstall Trisquel, just boot the Trisquel Live CD or USB and click on the "Install" icon (like you did to install it in the first place). If /home is not a separated file system, you probably want to backup some personal files first (e.g., on an external hard disk or on another computer in the network). You can do that from the live system.