Score:0

Problem while updating Ubuntu 20.04 with Synaptic

gr flag

I try to update Ubuntu 20.04 using Synaptic, but the update generates an error:

E: se interrumpió la ejecución de dpkg, debe ejecutar manualmente «dpkg --configure -a» para corregir el problema
E: _cache->open() failed, please report.
 
W: No se utilizan bloqueos para el fichero de bloqueo de sólo lectura /var/lib/dpkg/lock-frontend W: No se utilizan bloqueos para el fichero de bloqueo de sólo lectura /var/lib/dpkg/lock

I try to fix this error and I get:

dpkg: error: unable to access the dpkg database directory /var/lib/dpkg: File System only read

By reading several tutorials, I found that I should remove the /var/lib/apt/lists/lock file, but when I try to remove it using rm, I get:

rm: does not erase ‘/var/lib/apt/lists/lock’: File System only read

Is there any way to fix this error without reinstalling Ubuntu?

ru flag
You have a problem in your system that is resulting in the system being locked in read-only mode. This usually means your system is not clean. Do you still have the installation media for your Ubuntu? I ask because we may need to boot to it to run a file system check cleanly on your system.
mfduqued avatar
gr flag
Thanks Thomas. Yes, although I am afraid of formatting the disk and losing my information
mfduqued avatar
gr flag
You restart your pc, Yoy use initrmfs, con option help. fsck -c -y your damage partition
heynnema avatar
ru flag
Status please...
Score:1
ru flag

Your disk is in read-only mode, which usually means there's something wrong with your file system. Do the following to repair this...

  • boot to a Ubuntu Live DVD/USB in “Try Ubuntu” mode
  • open a terminal window by pressing Ctrl+Alt+T
  • type sudo fdisk -l
  • identify the /dev/sdXX device name for your "Linux Filesystem"
  • type sudo fsck -f /dev/sdXX, replacing sdXX with the number you found earlier
  • repeat the fsck command if there were errors
  • type reboot
mfduqued avatar
gr flag
Thanks heynnema
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.