apt get doest work

Asked by graham

My problem started with alarm NO_PUBKEY 28A8205077558DD0 when running update manager.
which I have rectified using Question #73171, asked on 2009-06-03 by John Kelly

ie gpg --keyserver keyserver.ubuntu.com --recv <thing here>; gpg --export --armor <thing here> | sudo apt-key add -

Now, the command is NOT complete and WILL NOT WORK as is. What you need to do is read the error, the last 8 characters in each code is to be inserted into the command and executed.

However, when I now run update manager it advises 69 updates which it processes normally and advises 'last updated less 1hr ago'. But if I check it again it again runs the 69 updates and processes them normally????????
If I try using the terminal the result is shown below:_

graham@graham-desktop:~$ apt-get update
E: Could not open lock file /var/lib/apt/lists/lock - open (13 Permission denied)
E: Unable to lock the list directory
graham@graham-desktop:~$

Some assistance with this problem would be greatly appreciated
As the previous question has been marked as solved I wonder whetger my question would be answered, hence this post.

Regards
Graham

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Solved by:
Soul-Sing
Solved:
Last query:
Last reply:
Revision history for this message
pablitofuerte (pablitofuerte) said :
#1

You need root privileges, type:

sudo apt-get update

And reply with the error output

Revision history for this message
graham (gjchild) said :
#2

Hi
Thanks for you response. I should have realised supper user is required.
Ran ok with apt get update now.

Rather than start a new topic, can you help me with

graham@graham-desktop:~$ sudo apt‐get install ecryptfs‐utils
sudo: apt‐get: command not found
graham@graham-desktop:~$

Regards
Graham

Revision history for this message
pablitofuerte (pablitofuerte) said :
#3

If you write properly "sudo apt‐get install ecryptfs‐utils" , should work

Have you try with Synaptic or aptitude:

sudo aptitude install ecryptfs-utils

Revision history for this message
graham (gjchild) said :
#4

Hi
Thanks for your response

Can you please explain why sudo apt get doesn't work and yet the aptitude does please?

Can you throw any light as to why "ecryptfs setup private" dont work, please.

Many thanks
Graham

graham@graham-desktop:~$ sudo apt‐get install ecryptfs‐utils
[sudo] password for graham:
sudo: apt‐get: command not found
graham@graham-desktop:~$ sudo aptitude install ecryptfs-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initialising package states... Done
Writing extended state information... Done
The following packages will be REMOVED:
  linux-headers-2.6.28-12{u} linux-headers-2.6.28-12-generic{u}
0 packages upgraded, 0 newly installed, 2 to remove and 1 not upgraded.
Need to get 0B of archives. After unpacking 74.6MB will be freed.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
(Reading database ... 152826 files and directories currently installed.)
Removing linux-headers-2.6.28-12-generic ...
Removing linux-headers-2.6.28-12 ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initialising package states... Done
Writing extended state information... Done

graham@graham-desktop:~$ ecryptfs setup private
bash: ecryptfs: command not found
graham@graham-desktop:~$

Revision history for this message
Best Soul-Sing (soulzing) said :
#5

ecryptfs-setup-private (watch the syntax)
: https://wiki.ubuntu.com/EncryptedPrivateDirectory

Revision history for this message
graham (gjchild) said :
#6

Thanks leoquant, that solved my question.

Revision history for this message
graham (gjchild) said :
#7

Hi
Thanks for your response

Can you please explain why sudo apt get doesn't work and yet the aptitude does please?

Can you throw any light as to why "ecryptfs setup private" dont work, please.

Many thanks
Graham

graham@graham-desktop:~$ sudo apt‐get install ecryptfs‐utils
[sudo] password for graham:
sudo: apt‐get: command not found
graham@graham-desktop:~$ sudo aptitude install ecryptfs-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initialising package states... Done
Writing extended state information... Done
The following packages will be REMOVED:
  linux-headers-2.6.28-12{u} linux-headers-2.6.28-12-generic{u}
0 packages upgraded, 0 newly installed, 2 to remove and 1 not upgraded.
Need to get 0B of archives. After unpacking 74.6MB will be freed.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
(Reading database ... 152826 files and directories currently installed.)
Removing linux-headers-2.6.28-12-generic ...
Removing linux-headers-2.6.28-12 ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initialising package states... Done
Writing extended state information... Done

graham@graham-desktop:~$ ecryptfs setup private
bash: ecryptfs: command not found
graham@graham-desktop:~$

Revision history for this message
graham (gjchild) said :
#8

Many thanks to Pablitoferte too