7

I tried to install midori using this answer:

Open terminal by pressing Ctrl+Alt+T and run the following commands,

sudo apt-add-repository ppa:midori/ppa
sudo apt-get update
sudo apt-get install midori

but I got following error:

E: Package 'midori' has no installation candidate
4
  • 2
    I think he means launchpad.net/~midori/+archive/ubuntu/ppa If you really want to give it a shot I guess the only option would be instead download the .deb file from here and install it e.g using gdebi <.deb file> or dpkg -i <.deb file>
    – derHugo
    Dec 23, 2017 at 19:21
  • 2
    You may try to install midori from 17.04, but it is not good idea. You may want to try other lightweight browsers such as surf, netsurf, arora, rekonq, qupzilla, epiphany-browser. Or chromium.
    – N0rbert
    Dec 23, 2017 at 19:24
  • 1
    Again, it is NOT recommended. However, If you really want to, you can edit the ppa file to install. If you are interested, please let me know and I will post an answer but it doesn't always work because of dependencies.
    – mchid
    Dec 23, 2017 at 19:30
  • 1
    The midori PPA has not been updated since 2015-08-30, but a new version is released (announced Nov 30 2018) and is available as snap and tarball. See the answer by @ DK Bose.
    – sudodus
    Dec 4, 2018 at 11:35

3 Answers 3

5

It is possible to install midori by compiling its source code under Ubuntu 17.10. Be aware though that there has been no development of this browser for some time so various security concerns will not have been addressed.

Just 4 simple steps are required:

1. Download build tools and dev files:

You will need a set of compiling tools and some 'development' files to build midori. Simply copy the following single command into a Terminal window:

sudo apt-get install build-essential cmake valac libvala-0.36-dev \
libwebkitgtk-3.0-dev libsqlite3-dev libsoup-gnome2.4-dev libwebkit2gtk-4.0-dev \
libzeitgeist-2.0-dev libgcr-3-dev librsvg2-bin intltool

2.Create a build directory & download the source:

Next create a build directory and download and extract the midori source here. Again the following is a single command:

mkdir $HOME/midori_build && cd $HOME/midori_build && \
wget http://midori-browser.org/downloads/midori_0.5.11_all_.tar.bz2 && \
tar xvf midori_0.5.11_all_.tar.bz2 

3. Alter the source:

midori requires some tweaking to compile with newer libraries and the following snippet borrows from Linux From Scratch to achieve this. Again a single command:

cd $HOME/midori_build/midori-0.5.11 && \
sed -e 's/protected Tally/public Tally/g' -i midori/midori-notebook.vala && \
sed -e 's/%d other files/%u other files/g' -i extensions/transfers.vala && \
for f in transfers adblock/widgets apps history-list notes; do
    sed -e 's/.remove (iter/.remove (ref iter/g' -i "extensions/$f.vala"
done

4. Compile and install midori:

Use the following single command to now compile and install midori (packaged with checkinstall for easy removal):

cd $HOME/midori_build/midori-0.5.11 && \
mkdir build && cd build && \
cmake -DCMAKE_INSTALL_PREFIX=/usr/local \
      -DUSE_GTK3=ON \
      -DCMAKE_BUILD_TYPE=Release \
      -DHALF_BRO_INCOM_WEBKIT2=ON .. && make && \
sudo checkinstall -D --install=yes --fstrans=no --pakdir "$HOME/midori_build" \
   --pkgname midori --backup=no --deldoc=yes --deldesc=yes --delspec=yes --default \
   --pkgversion "0.5.11" && \
sudo ldconfig

Screenshot:

Below is a screenshot of the completed installation on my 17.10 system. Note that there is still a little remedial work needed for the sidebar (dock) icon but I will investigate after Xmas :).

enter image description here

References:

0
4

Midori seems to be actively developed again.
https://www.midori-browser.org/2018/11/30/lorem-ipsum/
https://github.com/midori-browser/core/releases/.

Some features of Midori 7:
• Fixed YouTube rendering issue due to custom user agent
• Fixed invisible cursor in text fields
• Restored behavior of " " and "." in urlbar completion
• Download/ web notifications for background window/ tab
• Highlight in toolbar for finished downloads
• Re-introduced proxy server UX
• Multiple processes for indivdual tabs
• Adaptive toolbar layout for smaller screens

It's available as a snap or as a tar.

0
1

Simplest way now is to use the snap package.

In terminal type -

sudo apt install snapd
sudo snap install midori
2
  • Unfortunately Snap version of Midori is no longer updated. Current version is 1.1.4 from 30 September 2020 (6 months ago) as available on astian.org/en/midori-browser/download while the Snap version is still from old stream v8.0-31 Apr 29, 2021 at 13:21
  • Even Flathub was not updated for some time. Aparently packages available on the website are the only option Apr 29, 2021 at 15:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .