Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've freshly installed Ubuntu 10.04 on a new computer. I'm trying to install an application that I need onto it (my old computer is broken and I have to send it for service). I've managed to install texlive, but then I can't install anything else. All of the software I want installed is the same software that I had successfully installed on my old computer previously (using the same version of Ubuntu). I don't understand why the terminal gives this warning (sorry, the terminal speaks half English, half Polish, but I hope it's enough):

maria@marysia-ubuntu:~$ sudo aptitude install emacs
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności      
Odczyt informacji o stanie... Gotowe
Reading extended state information     
Initializing package states... Gotowe
The following NEW packages will be installed:
  emacs emacs23{a} emacs23-bin-common{a} emacs23-common{a}
  emacsen-common{a}
0 packages upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 23,9MB of archives. After unpacking 73,8MB will be used.
Do you want to continue? [Y/n/?] Y
WARNING: untrusted versions of the following packages will be installed!

Untrusted packages could compromise your system's security.
You should only proceed with the installation if you are certain that
this is what you want to do.

  emacs emacs23-bin-common emacsen-common emacs23-common emacs23

Do you want to ignore this warning and proceed anyway?
To continue, enter "Yes"; to abort, enter "No"

I was trying to install other editors as well, with the same result. As I decided that I might be sure that I know the package I want to install is secure, I finally entered "Yes". The installation ended successfully, but the editor doesn't understand .tex files (and the .tex files themselves are known to be good):

this is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)

restricted \write18 enabled.

entering extended mode

(./Szarfi.tex

! Undefined control sequence.

l.2 \documentclass

{book}

?

What's more, I've realised that in Synaptic Manager there aren't any packages which are marked as supported by Canonical....

Any tips? Thanks in advance.

P.S.

apt sources before using update:

maria@marysia-ubuntu:~$ cat /etc/apt/sources.list
#deb cdrom:[Ubuntu 10.04.2 LTS _Lucid Lynx_ - Release i386 (20110211.1)]/ lucid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://pl.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://pl.archive.ubuntu.com/ubuntu/ lucid main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://pl.archive.ubuntu.com/ubuntu/ lucid-updates main restricted
deb-src http://pl.archive.ubuntu.com/ubuntu/ lucid-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://pl.archive.ubuntu.com/ubuntu/ lucid universe
deb-src http://pl.archive.ubuntu.com/ubuntu/ lucid universe
deb http://pl.archive.ubuntu.com/ubuntu/ lucid-updates universe
deb-src http://pl.archive.ubuntu.com/ubuntu/ lucid-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://pl.archive.ubuntu.com/ubuntu/ lucid multiverse
deb-src http://pl.archive.ubuntu.com/ubuntu/ lucid multiverse
deb http://pl.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
deb-src http://pl.archive.ubuntu.com/ubuntu/ lucid-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://pl.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
# deb-src http://pl.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu lucid partner
# deb-src http://archive.canonical.com/ubuntu lucid partner

deb http://security.ubuntu.com/ubuntu lucid-security main restricted
deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted
deb http://security.ubuntu.com/ubuntu lucid-security universe
deb-src http://security.ubuntu.com/ubuntu lucid-security universe
deb http://security.ubuntu.com/ubuntu lucid-security multiverse
deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse
maria@marysia-ubuntu:~$ 

After using update, it's almost fine. I've managed to install 3 applications (texlive, texworks and ekg), and Synaptic shows icons for "supported by Cannonical". But problems with connection persist.

I'm connected to Internet, I can use chat, but sometimes I can't open any web pages. I'm not sure if it this is part of the same problem, or if one is resolved and for the other one I should write a separate post.

List of apt sources after using update:

maria@marysia-ubuntu:~$ cat /etc/apt/sources.list
#deb cdrom:[Ubuntu 10.04.2 LTS _Lucid Lynx_ - Release i386 (20110211.1)]/ lucid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://pl.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://pl.archive.ubuntu.com/ubuntu/ lucid main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://pl.archive.ubuntu.com/ubuntu/ lucid-updates main restricted
deb-src http://pl.archive.ubuntu.com/ubuntu/ lucid-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://pl.archive.ubuntu.com/ubuntu/ lucid universe
deb-src http://pl.archive.ubuntu.com/ubuntu/ lucid universe
deb http://pl.archive.ubuntu.com/ubuntu/ lucid-updates universe
deb-src http://pl.archive.ubuntu.com/ubuntu/ lucid-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://pl.archive.ubuntu.com/ubuntu/ lucid multiverse
deb-src http://pl.archive.ubuntu.com/ubuntu/ lucid multiverse
deb http://pl.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
deb-src http://pl.archive.ubuntu.com/ubuntu/ lucid-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://pl.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
# deb-src http://pl.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu lucid partner
# deb-src http://archive.canonical.com/ubuntu lucid partner

deb http://security.ubuntu.com/ubuntu lucid-security main restricted
deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted
deb http://security.ubuntu.com/ubuntu lucid-security universe
deb-src http://security.ubuntu.com/ubuntu lucid-security universe
deb http://security.ubuntu.com/ubuntu lucid-security multiverse
deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse
maria@marysia-ubuntu:~$ 

Seems changed, but it's the only thing I can understand.

Thanks.

share|improve this question
    
Can you post your apt sources? –  Lekensteyn Feb 26 '11 at 16:06
    
Done in "p.s." in 2 versions (before and after using apt-get update –  maria Feb 26 '11 at 17:14
    
To get English messages, run export LC_ALL=C in the terminal before running programs (or prefix it, like LC_ALL=C sudo apt-get update). Do you have a bad internet connection? –  Lekensteyn Feb 26 '11 at 17:39
    
@Lekensteyn: Thanks. Do you want me to repeat something from terminal report (? Sorry, I'm not fluent in English) in English? My internet connection is fine. On other computer I don't have any problems with connection. –  maria Feb 26 '11 at 18:40
    
apt-gets output is predictable, but for future questions, please use LC_ALL=C :) –  Lekensteyn Feb 26 '11 at 18:53

3 Answers 3

up vote 5 down vote accepted

Try updating the database

sudo apt-get update

If you're still seeing warning messages after that, provide the list of your repositories

grep -IRH '^deb ' /etc/apt/
share|improve this answer
    
sudo apt-get update helped a lot. Problem with connection persit, but I don't know if it's a part of the same problem, or another one. More details in main post in "p.s.". Thanks a lot –  maria Feb 26 '11 at 17:19

If you've just installed Ubuntu, and not added any repositories, update the package list and upgrade the packages:

 sudo apt-get update
 sudo apt-get upgrade

It's recommended to update the system first before installing other packages (at least, after the first install). The contents of the CD could be outdated.

share|improve this answer
    
Thanks a lot. I've done what you've said, it took some time, so it seems there were a lot of packages to update and upgrade :). So as I understand, it's enough for now and since now all will be updated when something new appears? So, if my connection problems persist I will post another question and this one is solved. Thanks again. –  maria Feb 26 '11 at 19:05
    
Ubuntu checks weekly for updates, but do not install those automatically by default: you still have to confirm the installation of the updates. –  Lekensteyn Feb 26 '11 at 20:16

I'm not a 100% sure but it looks like you are missing a bunch of gpg keys. To solve this problem I would install launchpad-getkeys which will import all of the missing keys on your system.

To install launchpad-getkeys you need to first add a ppa - What are ppa's and how do I use them The ppa line is ppa:nilarimogard/webupd8

then you can install launchpad-get keys first type this

sudo apt-get update

then this

sudo apt-get install launchpad-getkeys

and finally run with this command

sudo launchpad-getkeys

finally I would run another update after the keys have been imported.

sudo apt-get update

hope this helps

share|improve this answer
1  
If your keys are broken, DO NOT use apt-get for installing the keys. Untrusted repositories might override launchpad-getkeys and install malicious binaries. –  Lekensteyn Feb 26 '11 at 16:05
    
Launchpad-getkeys uses wget to install the keys no? –  Allan Feb 26 '11 at 16:12
    
@Lekensteyn: does it mean that I could make some damages by forcing installation before? I'm a bit worried, it's not my computer,but borrowed one... –  maria Feb 26 '11 at 17:16

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.