LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Debian: even after these steps, cannot install a package with Synaptic (https://www.linuxquestions.org/questions/linux-newbie-8/debian-even-after-these-steps-cannot-install-a-package-with-synaptic-4175630752/)

dedec0 05-29-2018 01:03 PM

Debian: even after these steps, cannot install a package with Synaptic
 
Recently I discovered that I want to have Sqlitebrowser.

Should be easy to install - I expected. It is shown in Synaptic. Marked to install, it needed some dependencies. Before installing, Synaptic says: ~9MiB to install, ~2MiB to download. "Great, it is small" - I thought. But after clicking install, it would not work. I received these errors:

Code:

W: Não pôde encontrar http://deb.debian.org/debian/pool/main/q/
          qtbase-opensource-src/libqt5printsupport5_5.7.1+dfsg-3+b1_amd64.deb
  Não foi possível abrir arquivo /var/cache/apt/archives/partial
          /libqt5printsupport5_5.7.1+dfsg-3+b1_amd64.deb
          - open (2: Arquivo ou diretório não encontrado)
          [IP: 2a04:4e42:16::204 80]


W: Não pôde encontrar http://deb.debian.org/debian/pool/main/q/qcustomplot
          /libqcustomplot1.3_1.3.2+dfsg1-1_amd64.deb
  Não foi possível abrir arquivo /var/cache/apt/archives/partial
          /libqcustomplot1.3_1.3.2+dfsg1-1_amd64.deb - open
          (2: Arquivo ou diretório não encontrado) [IP: 151.101.92.204 80]


W: Não pôde encontrar http://deb.debian.org/debian/pool/main/q/qscintilla2
          /libqt5scintilla2-l10n_2.9.3+dfsg-4_all.deb
  Não foi possível abrir arquivo /var/cache/apt/archives/partial
          /libqt5scintilla2-l10n_2.9.3+dfsg-4_all.deb
          - open (2: Arquivo ou diretório não encontrado)
          [IP: 2a04:4e42:16::204 80]


W: Não pôde encontrar http://deb.debian.org/debian/pool/main/q/qscintilla2
          /libqt5scintilla2-12v5_2.9.3+dfsg-4_amd64.deb
  Não foi possível abrir arquivo /var/cache/apt/archives/partial
          /libqt5scintilla2-12v5_2.9.3+dfsg-4_amd64.deb
          - open (2: Arquivo ou diretório não encontrado)
          [IP: 151.101.92.204 80]


W: Não pôde encontrar http://deb.debian.org/debian/pool/main/q/
          qtbase-opensource-src/libqt5test5_5.7.1+dfsg-3+b1_amd64.deb
  Não foi possível abrir arquivo /var/cache/apt/archives/partial
          /libqt5test5_5.7.1+dfsg-3+b1_amd64.deb
          - open (2: Arquivo ou diretório não encontrado)
          [IP: 2a04:4e42:16::204 80]


W: Não pôde encontrar http://deb.debian.org/debian/pool/main/s/
          sqlitebrowser/sqlitebrowser_3.9.1-2_amd64.deb
  Não foi possível abrir arquivo /var/cache/apt/archives/partial
          /sqlitebrowser_3.9.1-2_amd64.deb
          - open (2: Arquivo ou diretório não encontrado)
          [IP: 151.101.92.204 80]

Translating the sentences, they mean:

1. "Não pôde encontrar" -> "Could not find"

2. "Não foi possível abrir arquivo" -> "Could not open file"

3. "Arquivo ou diretório não encontrado" -> "File or directory not found"

What should be wrong? I have changed Synaptic repositories before, with help in these fora.

A smaller question: the errors of file/dir not found, are they *consequence* of each of the previous errors of not finding the package?

Before coming here, I had an idea: reload package information. I did that, but the error stays the same. Checking the repositories from Synaptic, I have these:

http://imgbox.com/i4RU3Tbd

What should I do to have that program?

pan64 05-29-2018 01:12 PM

it looks like something wrong with your dir /var/cache/apt/archives/partial. Probably it does not exist. Try to create it, although I'm not really sure if that solves this.

dedec0 05-29-2018 01:26 PM

The folder did not exist, created. That almost fixed it. It downloaded something. But in the end, a window is shown:

Quote:

(as super user)

The following details are available:

W: Download is performed unsandboxed as root as file '/var/cache/apt/archives/partial/libqt5printsupport5_5.7.1+dfsg-3+b1_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permissão negada)
Do a 'chmod +x' of something?

ondoho 05-29-2018 01:28 PM

maybe you should repeat the command with LC_ALL=C prepended to it.
not sure how it works with sudo, maybe
Code:

LC_ALL=C sudo synaptic
so that we can see the errors in english.

also, your sources: the skype repo looks poisonous.
it says "stable" - but are you sure it means stretch?

pan64 05-29-2018 01:50 PM

that was explained: the user _apt has no right to read it. So chmod ...

dedec0 05-29-2018 01:51 PM

Quote:

Originally Posted by ondoho (Post 5860943)
maybe you should repeat the command with LC_ALL=C prepended to it.
not sure how it works with sudo, maybe
Code:

LC_ALL=C sudo synaptic
so that we can see the errors in english.

also, your sources: the skype repo looks poisonous.
it says "stable" - but are you sure it means stretch?

I (usually) execute Synaptic from Mate's menu. I will create a new item there for that command - I should have thought of it before ((ashamed)). The current command in the menu calls 'synaptic-pkexec' instead - I never imagined that. Using the terminal, I found that the only "syna*" command available here is 'synaptic-pkexec'. Strange - for me, at least. Is that normal?

The skype repository is there because I installed Skype some weeks ago. It updates itself from there, I suppose. This is not suspicious to me. Skype has very few options for Linux. I think that should be right, since it was chosen by Skype itself. They should not have different repos for each Debian version, I imagine. One download for several linuxes. In the page

skype.com/en/get-skype/skype-for-linux

we have only these downloads:

Quote:

Get Skype for Linux RPM
Get Skype for Linux DEB
Get Skype for Linux SNAP
Get Skype for Windows
Get Skype for Mac
Irony of things: the reason why I want that SQLite view is the history file of Skype, it is a main.db file in that format. And for strange reasons, I cannot export mine in the usual way, from the program itself.

dedec0 05-29-2018 02:05 PM

Quote:

Originally Posted by pan64 (Post 5860954)
that was explained: the user _apt has no right to read it. So chmod ...

Synaptic created the file in the directory root (me as) created. It should have the right permissions - is this a bug? But before reading your post, I was replying ondoho answer.

Anyway, in these last minutes several things happened, I forgot to comment something: after that read error, sqlitebrowser ran from menu (it opened a window, at least, was all I did before closing it).

Now, with your comment, I checked the partial folder: was empty! I got back to synaptic window and marked the sqlitebrowser to be reinstalled. It downloaded again and reinstalled. No message!

Only now, ending the words above, I thought: the package to be reinstalled is other, right?
libqt5printsupport5_5.7.1+dfsg-3+b1_amd64.deb

Give me a few minutes...

dedec0 05-29-2018 02:11 PM

Quote:

Originally Posted by dedec0 (Post 5860966)
[...]

Only now, ending the words above, I thought: the package to be reinstalled is other, right?
libqt5printsupport5_5.7.1+dfsg-3+b1_amd64.deb

Give me a few minutes...

In Synaptic:

Searched for "libqt5printsupport5". Found one package, already marked as installed. Marked it to be reinstalled... applied changes... no message was shown, as expected from before things! Is this possible?

dedec0 05-29-2018 03:47 PM

Is this thread solved?
 
Is this thread solved? I am just waiting answers or comments to what I said in #6, #7 and #8.

Quote:

Originally Posted by ondoho (Post 5860943)
maybe you should repeat the command with LC_ALL=C prepended to it.
not sure how it works with sudo, maybe
Code:

LC_ALL=C sudo synaptic
so that we can see the errors in english.

also, your sources: the skype repo looks poisonous.
it says "stable" - but are you sure it means stretch?

I did not know that command would (does) not need ";" after "=C".
(:

AwesomeMachine 05-29-2018 05:57 PM

the LC_ALL=C part is just so the output is in English. I would simply run
Code:

$ sudo dpkg --configure --pending
just to make sure everything completed properly.

dedec0 05-29-2018 06:27 PM

Quote:

Originally Posted by AwesomeMachine (Post 5861054)
the LC_ALL=C part is just so the output is in English. I would simply run
Code:

$ sudo dpkg --configure --pending
just to make sure everything completed properly.

I knew what LC_ALL=C does, sets an environment variable for the succeeding command. But I thought what a ";" would be needed to have any command in the same line (after a space, of course).

I did that command now. No output. Does that mean everything is all right?

As I said, I am just waiting answers or comments to what I said in #6, #7 and #8. I am not sure that what you just said answers their questions.

ondoho 05-29-2018 10:43 PM

looks like everything is OK for now.

Quote:

Originally Posted by dedec0 (Post 5860956)
The skype repository is there because I installed Skype some weeks ago. It updates itself from there, I suppose. This is not suspicious to me.

dream on...
numerous are threads where people had the wrong google chrome repos in their lists (and franken'd their installs), i guess the same goes for microsuck.

pan64 05-30-2018 02:18 AM

Quote:

Originally Posted by dedec0 (Post 5860966)
Synaptic created the file in the directory root (me as) created. It should have the right permissions - is this a bug? But before reading your post, I was replying ondoho answer.

Anyway, in these last minutes several things happened, I forgot to comment something: after that read error, sqlitebrowser ran from menu (it opened a window, at least, was all I did before closing it).

Now, with your comment, I checked the partial folder: was empty! I got back to synaptic window and marked the sqlitebrowser to be reinstalled. It downloaded again and reinstalled. No message!

Only now, ending the words above, I thought: the package to be reinstalled is other, right?
libqt5printsupport5_5.7.1+dfsg-3+b1_amd64.deb

Give me a few minutes...

synaptic usually works as root. But the package management system uses the user _apt and - because you created the folder yourself - I'm not really sure if the rights are correctly set.

dedec0 05-30-2018 08:06 AM

Quote:

Originally Posted by pan64 (Post 5861201)
synaptic usually works as root. But the package management system uses the user _apt and - because you created the folder yourself - I'm not really sure if the rights are correctly set.

I simply did 'sudo mkdir partial', in /var/cache/apt/archives/.

Right now, I checked if the rights of another folder created there, compared it with the partial folder already there:

Code:

me@here: ~
$  cd /var/cache/apt/archives/

me@here: /var/cache/apt/archives/
$  sudo mkdir z
[sudo] senha para me:

me@here: /var/cache/apt/archives/
$  ls -l
total 0
0 -rw-r----- 1 root root  0 mai 29 13:55 lock
0 drwxr-xr-x 2 root root 40 mai 29 16:05 partial
0 drwxr-xr-x 2 root root 40 mai 30 09:25 z

me@here: /var/cache/apt/archives/
$

Yesterday, in the reinstall step, because the download progress bar took a couple of seconds to end, similar to the first time (if not equal) I assumed it was downloaded again. Further, in Synaptic:

Settings > Preferences > [tab] Files

1. In "Temporary files", "Erase downloaded files after install" is and was checked.

2. In "History files", "Keep history" is and was checked.

How do I find something to install that will require the same thing that caused the problem yesterday? The error looked (for me) as caused by only one package, from a few installed - maybe because it was the first? Installing now should answer if '755 root:root' is good enough. The only thing to be missing is 'x' right, right?

Funny that the lock file exist without any synaptic windows opened, and also nothing (that I know) apt related is running. I tried that listing in different moments - same result. Also tried to open synaptic (in Debian it asks password before opening, in Ubuntu it only asked to apply changes), no problem for it rooting.

hydrurga 05-30-2018 08:14 AM

If you want, we can go back to the basics, and start with:

Code:

sudo apt-get check

sudo dpkg --audit



All times are GMT -5. The time now is 03:29 AM.