LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Libre Office won't save or save as... (https://www.linuxquestions.org/questions/linux-software-2/libre-office-wont-save-or-save-as-4175715313/)

Novatian 08-03-2022 01:16 AM

Libre Office won't save or save as...
 
I am using Mint 20.2 and Libre Office, which opens a document from my memory stick but when I modify it and want to save, it reads an error:
Quote:

Error saving the document resume 2022:
Write error.
The file could not be written.
Then
Quote:

OK.
To save as, I have to start a recovery of the document with the original title.
Below is the the title of the document that comes up, it should only be Brendan MB Resume.docx
Quote:

.~lock.Brendan MB Resume 2022.docx#
And inside the document:
Quote:

,bm,Computer2,03.08.2022 16:08,file:///home/bm/.config/libreoffice/4;
How can I save my new documents...?

John VV 08-03-2022 09:26 AM

is the usb stick mounted as Read Only ?

michaelk 08-03-2022 09:51 AM

The lock file is used to prevent multiple users from editing the same file at the same time. It should be deleted when the document is closed but a crash or other glitch might not have when previously opened.

With the document closed try deleting the lock file and see what happens. Otherwise:

As posted the flash drive might be mounted read only.
The document might be set to read only by LO.
The flash drive might be failing and mounting read only.

Can you copy the document to your hard drive?

Novatian 08-04-2022 12:33 AM

Quote:

Originally Posted by michaelk (Post 6371581)
The lock file is used to prevent multiple users from editing the same file at the same time. It should be deleted when the document is closed but a crash or other glitch might not have when previously opened.

With the document closed try deleting the lock file and see what happens. Otherwise:

As posted the flash drive might be mounted read only.
The document might be set to read only by LO.
The flash drive might be failing and mounting read only.

Can you copy the document to your hard drive?

I saved an image from my SSD to the stick and it opened. And I copied a document to SSD and it opened. I don't know how to see if LO is set to read only?

I tried making a document called test save and save as docx and this results in LO wanting to recover another document, "untitled 1" if I choose to recover it it opens and has the test page in it and is still untitled even though this time it was titled in save as as "test 3".

I renamed the file without lock... but there is only the one line in that when opened.

michaelk 08-04-2022 06:45 AM

If you can copy files to the flash drive then it isn't read only. If a document opens read only there will be a banner at the top indicating it is read only.

Did you create the new test document on the SSD or the flash drive? LO will use default naming "untitled X" when a new document is saved unless it is renamed and also defaults to ~/Documents.

Check your backup directory for files. For the location look at the tools->options backup path. This is where recovery files are located. Typically LO is configured to auto save files every 10 minutes. Seems strange that LO wants to recover the file.

With LO not running just delete the lock file. The file contents from the OP "03.08.2022" indicates the date the lock file was created so was this the last time you opened this particular file?

Novatian 08-05-2022 09:16 AM

May uninstalling and reinstalling LO help or Updating LO to the most recent version? Or manually installing and older version?


bm@Computer2:~$ apt-get update libreoffice
E: The update command takes no arguments

Novatian 08-05-2022 09:22 AM

Quote:

Originally Posted by michaelk (Post 6371778)
If you can copy files to the flash drive then it isn't read only. If a document opens read only there will be a banner at the top indicating it is read only.

Did you create the new test document on the SSD or the flash drive? LO will use default naming "untitled X" when a new document is saved unless it is renamed and also defaults to ~/Documents.

Check your backup directory for files. For the location look at the tools->options backup path. This is where recovery files are located. Typically LO is configured to auto save files every 10 minutes. Seems strange that LO wants to recover the file.

With LO not running just delete the lock file. The file contents from the OP "03.08.2022" indicates the date the lock file was created so was this the last time you opened this particular file?

The program open anew from SSD and won't save a test document.
On another Linux computer it works. But the renamed files still don't produce more that the line with the date.
Back up seems empty.
That date is the one.
Renaming the files and then opening them doesn't make a difference.

fatmac 08-05-2022 09:27 AM

Do you have 'permission' to write to your USB stick(?).

If not, you need to change it's 'ownership' to your user name.

(If it is a MS filesystem, you will likely need to write to it as sudo or root.)

michaelk 08-05-2022 09:53 AM

Starting anew, the document will just be in RAM until it auto saves i.e. after 10 minutes by default or if you save the document. You did not post where you were trying to save the document. The recovery message when you try to save the test document is strange since the backup directory is empty. It appears like you can copy files back and forth between the flash, SSD or maybe from other sources so filesystem corruption or either file system being read only is not the problem? I assume you have sufficient free space on either filesystem.

LO might be messed up.

Novatian 08-05-2022 10:42 AM

I installed the latest LO 7.3 along side the old, and the newer versions works.

Novatian 08-05-2022 05:21 PM

I'll add solved, but, what went wrong?

michaelk 08-05-2022 05:32 PM

I have no idea.


All times are GMT -5. The time now is 01:22 PM.